Skip to content

Math.Mean

Name - Description Default Type
<input> A sequence of floating point numbers. [Float]
<output> The calculated mean. Float
Kind The kind of Pythagorean means. Mean.Arithmetic Mean

Calculates the mean of a sequence of floating point numbers.

Examples

1
2
3
4
5
6
(Const [-1.0 0.0 1.0 2.0 5.0])
(Math.Mean
 ;:Kind
 Mean.Arithmetic) (Log)

(Assert.Is 1.4 true)
[info] [shards/Math/Mean/Mean.edn] 1.4