This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

Math::MeanAbsoluteDeviation

Math::MeanAbsoluteDeviation(x, y, …​): number

Calculates mean absolute deviation for given series.

Table 1. Parameters

x, y, …​

number, Array

Comma separated numbers or array(s) of numbers

Return

Absolute deviation for given series.

println(Math::MeanAbsoluteDeviation([2, 4, 4, 4, 5, 5, 7, 11])) // Will print "1.875"
println(Math::MeanAbsoluteDeviation(2, 4, 4, 4, [5, 5, 7, 11])) // Will print "1.875"