statistics

fun statistics(statistics: DoubleArray)

Fills up the supplied array with the statistics defined by index = statistic

statistics0 = getCount(); statistics1 = getAverage(); statistics2 = getMin(); statistics3 = getMax(); statistics4 = getWeightedSum(); statistics5 = getSumOfWeights(); statistics6 = getWeightedSumOfSquares(); statistics7 = getLastValue(); statistics8 = getLastWeight(); statistics9 = getUnWeightedSum(); statistics10 = getUnWeightedAverage();

The array must be of size 9 or an exception will be thrown

Parameters

statistics

the array to fill


Returns an array with the statistics defined by index = statistic

statistics0 = getCount(); statistics1 = getAverage(); statistics2 = getMin(); statistics3 = getMax(); statistics4 = getSum(); statistics5 = getSumOfWeights(); statistics6 = getWeightedSumOfSquares(); statistics7 = getLastValue(); statistics8 = getLastWeight(); statistics9 = getUnWeightedSum(); statistics10 = getUnWeightedAverage();

Return

the array of statistics