FNVariancereturns the variance of the elements in the arrayA. Thevarianceis the average value of the square of the differences between the elements in the array and the mean value of the elements. This version of the variance uses the number of points in the arrayA,n, as the divisor in the averaging calculation, instead of the valuen- 1 used in some formulas for variance.
Errors
FNVariancecauses an HTBasic error if its argument is not a REAL array.