Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
runif01=: ?@$ 0: NB. random uniform number generator
|
||||
rnorm01=. (2 o. 2p1 * runif01) * [: %: _2 * ^.@runif01 NB. random normal number generator (Box-Muller)
|
||||
|
||||
mean=: +/ % # NB. mean
|
||||
stddev=: (<:@# %~ +/)&.:*:@(- mean) NB. standard deviation
|
||||
histogram=: <:@(#/.~)@(i.@#@[ , I.)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
DataSet=: rnorm01 1e5
|
||||
(mean , stddev) DataSet
|
||||
0.000781667 1.00154
|
||||
require 'plot'
|
||||
plot (5 %~ i: 25) ([;histogram) DataSet
|
||||
Loading…
Add table
Add a link
Reference in a new issue