Re: [Jprogramming] find crop position in image

2019-04-30 Thread Ben Gorte
With getting the thing to compile I'm afraid I cannot help. I once downloaded a linux binary dated July 8, 2005. It reads a .pgm from stdin, writes an ascii keypoint file to stdout, and has very standard dependencies. If all else fails I can send it to you :-) grtz, B On Wed, May 1, 2019 at 3

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Jose Mario Quintana
I use the following adverb, filter=. &> (#~`) (`:6) (>&6) filter 2+i.9 7 8 9 10 ((2&|)*.(>&6)) filter 2+i.9 7 9 It is slightly more complicated than expected because it can also deal with boxed lists, palindrome=. -: |. palindrome filter 'rats live on no evil star' ; 'blessed ar

Re: [Jprogramming] convolutional neural network [was simplifying im2col]

2019-04-30 Thread Henry Rich
Something on OO is at https://code.jsoftware.com/wiki/Vocabulary/ObjectOrientedProgramming If you are using lots of instances, using numeric atoms rather than boxed strings for the locatives

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Brian Schott
Yes, it's a fork. On Tue, Apr 30, 2019 at 12:21 PM Linda Alvord wrote: > > f > < # ] > > I find it difficult to get from tacit expressions that contain ] t0 an > explicit. > > Is this a fork? > > Linda > -- (B=) -- For informa

Re: [Jprogramming] find crop position in image

2019-04-30 Thread Raul Miller
Thanks, that looks promising. Now to see if I can get the thing to compile, with all of its dependencies... Thanks again, -- Raul On Mon, Apr 29, 2019 at 10:10 PM Ben Gorte wrote: > > Hi Raul, > > I would use Lowe's SIFT (Scale Invariant Feature Transform) for that, see > Wikipedia. I just tr

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Linda Alvord
f < # ] I find it difficult to get from tacit expressions that contain ] t0 an explicit. Is this a fork? Linda Sent from my Verizon, Samsung Galaxy smartphone definition. Original message From: Pablo Landherr Date: 4/30/19 11:54 AM (GMT-05:00) To: Programming forum Subj

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Pablo Landherr
Here is a simple approach: for =: #~ age =: ?20#100 sex =: ?20#2 weight =: 100+?20#100 id =: 1+?20#5000 or =: +. and =: *. id 14652 14290 14262 13100 11264 11129 11414 10030 11792 12598 14282 13212 14154 11130 11584 11355 13035 14807 11608 10123 id for age > 70 11129 12598 14282 13

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Linda Alvord
]a=:2+i.9 2 3 4 5 6 7 8 9 10 (6 Date: 4/30/19 9:08 AM (GMT-05:00) To: programm...@jsoftware.com Subject: Re: [Jprogramming] How to get actual values instead of booleans from a list? (#~ >&6) (2+i.9) 7 8 9 10 On Tuesday, April 30, 2019, 9:06:26 a.m. EDT, JmageK wrote: NB. Want i

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread JmageK
I tried the explicit code. The gist I undersand that I can return values matching booleans on the left using ''#"     1 0 1 #(i.3)0 2 Originally I was trying ] and it's variations to get results, the correct one being #] I see.  '13 :' is a neat utility. I prefer tacit to explicit, so should com

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Brian Schott
A slightly more gentle approach to the problem solved as Pascal gave is to use the magical `13 :` construct as shown below; force the first 2 steps into just one line and call the argument y . a=.(>&6) (2+i.9) a# (2+i.9) 7 8 9 10 13 : 'a#y[a=.(>&6) y' NB. 13 : produces a tacit result whe

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread JmageK
Thanks! It also works for multiple conditions. (#~(2&|)*.(>&6)) 2+I.9 JmageK -- Securely sent with Tutanota Apr 30, 2019, 6:38 PM by programm...@jsoftware.com: > > > (#~ >&6) (2+i.9) > > 7 8 9 10 > > > > > On Tuesday, April 30, 2019, 9:06:26 a.m. EDT, JmageK <> jma...@tuta.io >

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread Brian Schott
a=.(>&6) (2+i.9) a# (2+i.9) 7 8 9 10 On Tue, Apr 30, 2019 at 9:06 AM JmageK wrote: > NB. Want it to return all numbers larger than 6 from list > >(>&6) (2+i.9) > NB. Actual result 0 0 0 0 0 1 1 1 1 > NB. desired result 7 8 9 10 > > > I searched but could not find what to do next to hav

Re: [Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread 'Pascal Jasmin' via Programming
(#~ >&6) (2+i.9) 7 8 9 10 On Tuesday, April 30, 2019, 9:06:26 a.m. EDT, JmageK wrote: NB. Want it to return all numbers larger than 6 from list    (>&6) (2+i.9) NB. Actual result 0 0 0 0 0 1 1 1 1 NB. desired result 7 8 9 10 I searched but could not find what to do next to have it

[Jprogramming] How to get actual values instead of booleans from a list?

2019-04-30 Thread JmageK
NB. Want it to return all numbers larger than 6 from list    (>&6) (2+i.9) NB. Actual result 0 0 0 0 0 1 1 1 1 NB. desired result 7 8 9 10 I searched but could not find what to do next to have it return only those numbers which pass the comparison (1 1 1 ). JmageK -- Securely sent with Tutan