Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
(scl 2)
|
||||
|
||||
(de stdDev ()
|
||||
(curry ((Data)) (N)
|
||||
(push 'Data N)
|
||||
(let (Len (length Data) M (*/ (apply + Data) Len))
|
||||
(sqrt
|
||||
(*/
|
||||
(sum
|
||||
'((N) (*/ (- N M) (- N M) 1.0))
|
||||
Data )
|
||||
1.0
|
||||
Len )
|
||||
T ) ) ) )
|
||||
|
||||
(let Fun (stdDev)
|
||||
(for N (2.0 4.0 4.0 4.0 5.0 5.0 7.0 9.0)
|
||||
(prinl (format N *Scl) " -> " (format (Fun N) *Scl)) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue