Examples  ... Forgive iphone typos...

Open, close of prices and range...

  nos=.2 3 5 8 13 21
  openclose=.{. , {:
  range=.>./ - <./
  openclose nos
2 21
  range nos
19

Statistics (original courtesy of Keith Smillie, these are broken down)

am =: +/ % #     NB. Arithmetic mean
gm =: # %: */     NB. Geometric Mean
dev=: ] - am
ss =: [: +/ [: *: dev
var=: (# - 1:) %~ ss
sd =: [: %: var

Freqdist=: ~. ,: #/.~

Regards Rob

> On 17 Jul 2014, at 6:26 am, 'Dan Baronet' via Programming 
> <programm...@jsoftware.com> wrote:
> 
> I am looking for good examples of use of trains.
> Apart from the classic +/ % #, I can't think of many more.
> Anyone with some examples? They can be of any length.
> /Dan
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to