1.2.3-SNAPSHOT permalink Arrow_down_16x16
  • (mean x)

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

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/stats.clj:1442 top

(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))))))
Vars in incanter.stats/mean: defn double-array let
Used in 0 other vars

Comments top

No comments for mean. Log in to add a comment.