Re: [Jprogramming] Fill between curves using plot

2018-01-18 Thread Louis de Forcrand
You could try something with the polygon plot type. Assuming you have two sets of points, one for the top curve and one for the bottom curve, each in the usual form (xcoords;ycoords): 'poly' plot bot (, |.)&.> top might do something interesting. There may be other options like for opacity etc.,

Re: [Jprogramming] Fill between curves using plot

2018-01-18 Thread 'Jon Hough' via Programming
Thanks Linda, I am not sure that is exactly what I am looking for, but thank you anyway. I am interested in showing the error estimates on a line graph, e.g. see the second answer here: https://stackoverflow.com/questions/12957582/matplotlib-plot-yerr-xerr-as-shaded-region-rather-than-error-ba

Re: [Jprogramming] Word Count

2018-01-18 Thread 'Mike Day' via Programming
($~ _1+x+#) nice one! On 18/01/2018 16:08, Raul Miller wrote: Ah, yes, I missed the bit about wrapping. I was in a hurry to get out the door and glossed over that part. Still, that's simple to add: words=: ;: NB. might change this because punctuation handling pc=: 4 :0 w=. x <@(;:inv)\

Re: [Jprogramming] Adverb dabbling

2018-01-18 Thread Rob B
Thanks, I see. Rob. > On 18 Jan 2018, at 14:09, Raul Miller wrote: > > It's trying to tell you that you need a ':' in your adverb definition > so that the resulting explicit code accepts an x argument. > > See also: http://www.jsoftware.com/help/dictionary/d310n.htm (or maybe > the NuVoc para

Re: [Jprogramming] Word Count

2018-01-18 Thread Raul Miller
Ah, yes, I missed the bit about wrapping. I was in a hurry to get out the door and glossed over that part. Still, that's simple to add: words=: ;: NB. might change this because punctuation handling pc=: 4 :0 w=. x <@(;:inv)\ ($~ _1+x+#) words y n=. #/.~ w o=. \: n (<"0 o{n),:o{~.w ) Not

Re: [Jprogramming] Word Count

2018-01-18 Thread 'Mike Day' via Programming
Raul's explicit verb is more readable,  than the following,  but I think he's overlooked your requirement for word-wrapping. As I understand that little extra,  one only needs to wrap 1 fewer words than the group-size.  I chose to wrap them at the end rather than at the front,  which your exa

Re: [Jprogramming] Adverb dabbling

2018-01-18 Thread Raul Miller
It's trying to tell you that you need a ':' in your adverb definition so that the resulting explicit code accepts an x argument. See also: http://www.jsoftware.com/help/dictionary/d310n.htm (or maybe the NuVoc parallel...). Try: monad2dyad 1 :(':';'u x,y') or monad2dyad 1 :'u@,' or monad2dya

Re: [Jprogramming] Word Count

2018-01-18 Thread Raul Miller
words=: ;: NB. might change this because punctuation handling pc=: 4 :0 w=. x <@(;:inv)\ words y n=. #/.~ w o=. \: n (<"0 o{n),:o{~.w ) I hope this helps, -- Raul On Thu, Jan 18, 2018 at 3:23 AM, Skip Cave wrote: > I'm working on some Natural Language Processing algorithms. > > I bui

[Jprogramming] Adverb dabbling

2018-01-18 Thread Rob B
Hi, This adverb works fine NB. Adverb.. Allows x u y to be expressed as u dyad2monad x y dyad2monad =: 1 : '({.y) u }.y' - dyad2monad 1 3 NB. Should give _2 _2 But this one fails... NB. Adverb.. allows u x y to be expressed as x u monad2dyad y monad2dyad =: 1 : 'u x, y' 1 -mona

Re: [Jprogramming] Word Count

2018-01-18 Thread Linda Alvord
More later... Or: lwc2=: 13 :'(<"0 wc y),.~.;:y' -Original Message- From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Skip Cave Sent: Thursday, January 18, 2018 3:24 AM To: programm...@jsoftware.com Subject: [Jprogramming] Word Count I'm working on some N

[Jprogramming] Word Count

2018-01-18 Thread Skip Cave
I'm working on some Natural Language Processing algorithms. I built ​a basic ​set of ​ word count verbs: ​ ​ NB. Test phrase ​:​ ​ ​ b =. 'the cat in the hat ate a hat and saw another cat in a hat in the hat' ​ ​ NB. Word count ​ ​ wc =.3 :'#/.~;:y' ​ ​ NB. Labeled word count ​ ​ lwc =