1.2.3-SNAPSHOT permalink Arrow_down_16x16

square-devs-from-mean

incanter.stats

  • (square-devs-from-mean x)
  • (square-devs-from-mean x m)
takes either a sample or a sample and a precalculated mean.

returns the squares of the difference between each observation and the sample 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:2618 top

(defn square-devs-from-mean
"takes either a sample or a sample and a precalculated mean.

returns the squares of the difference between each observation and the sample mean."
  ([x]
     (square-devs-from-mean x (mean x)))

  ([x m]
     (map 
      #(pow 
        (- % m) 2)
      x)))
Vars in incanter.stats/square-devs-from-mean: - defn map
Used in 0 other vars

Comments top

No comments for square-devs-from-mean. Log in to add a comment.