1.2.3-SNAPSHOT permalink Arrow_down_16x16

sum-of-squares

incanter.core

  • (sum-of-squares x)
Returns the sum-of-squares of the given sequence.

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/core.clj:806 top

(defn sum-of-squares
  "Returns the sum-of-squares of the given sequence."
  ([x]
    (let [xx (if (or (nil? x) (empty? x)) [0] (to-list x))]
      (DoubleDescriptive/sumOfSquares (DoubleArrayList. (double-array xx))))))
Vars in incanter.core/sum-of-squares: defn double-array let
Used in 0 other vars

Comments top

No comments for sum-of-squares. Log in to add a comment.