(defn mean
"
Returns the mean of the data, x.
Examples:
(mean (sample-normal 100))
References:
http://incanter.org/docs/parallelcolt/api/cern/jet/stat/tdouble/DoubleDescriptive.html
http://en.wikipedia.org/wiki/Mean
"
([x]
(let [xx (to-list x)]
(DoubleDescriptive/mean (DoubleArrayList. (double-array xx))))))
Comments top
No comments for mean. Log in to add a comment.