At 14:27  +1300 2007/11/09, Sherlock, Ric wrote:
---Joey K Tuttle wrote:
 There isn't a built in
 function that j uses to generate normal distributions, and
 writing an equivalent to MatLab randn() would be an
 interesting exercise.

Do library functions count?
   load 'stats'

   normalrand 3 5
 _0.740033 1.76012   0.71084 _0.523744  _1.10238
0.00433923 1.83453 _0.909053  0.014178  0.100423
  _3.25953 1.07656   _1.1676 _0.317307 _0.401936

   normalrand
3 : '(2 o. +: o. rand01 y) * %: - +: ^. rand01 y'
   rand01
[EMAIL PROTECTED] 0:


Yes, great that normalrand is included.
However ... when I did:

   load 'stats'

NB. scratch my head and wonder what verbs are included.
NB. look up in DOJ NDX under Scripts - happily near "stats"
NB. which doesn't appear...

   load 'scriptdoc'
   scriptdoc 'stats'
|value error: wdisparent
|       wdisparent'sdoc'


NB. this happens in j601 and j602 running jconsole

.... hard to find one's way sometimes.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to