Functions which operate on lists of values.
Some of these resemble similar functions in the Arrays
class,
and in some cases are interchangeable, but these are easier to use
on non-array values because you don't have to explicitly wrap up
lists of arguments as an array.
However, for implementation reasons, most of the functions defined here
can be used on values which are already double[]
arrays
(for instance array-valued columns) rather than as comma-separated
lists of floating point values.
sum( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
sum(1, 3, 99) = 103
sum(1, 3, NaN) = 4
mean( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
mean(2, 4, 6, 8) = 5
mean(100.5, 99.5, NaN) = 100
variance( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
variance(0, 3, 4, 3, 0) = 2.8
variance(0, 3, NaN, 3, NaN) = 2
stdev( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
stdev(-3, -2, 0, 0, 1, 2, 3, 4, 5, 6) = 2.8
min( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
min(20, 25, -50, NaN, 101) = -50
max( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
max(20, 25, -50, NaN, 101) = 101
median( values, ... )
values
(floating point, one or more): one or more numeric valuesvalues
median(-100000, 5, 6, 7, 8) = 6
countTrue( values, ... )
values
(boolean, one or more): one or more true/false valuesvalues
that are truecountTrue(false, false, true, false, true) = 2