meanValue method
Returns the mean value of the numbers in array
in the region ixstart, ixend
(ixend exclusive)
ixstart
and ixend
may be null, equivalent to the left/rightmost index.
Implementation
static double meanValue(Float64List array, int ixstart, int ixend) {
if (ixstart == null) ixstart = 0;
if (ixend == null) ixend = array.length - 1;
double mean = 0.0;
for (int i = ixstart; i < ixend; i++) {
mean += array[i];
}
mean /= ixend - ixstart + 1;
return mean;
}