HTBasic Help
×
Menu
Index
Mean
Mean of values in an array.
 
Loading        LOADSUB ALL FROM "MEAN.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                REAL A(*),Y
Y=FNMean(A(*))
 
Description                
FNMean returns the mean value of the elements in the array A. The mean is the average value of the elements in the array, which is computed by adding the values of the elements in the array and dividing the sum by the number of elements.
 
Errors                
FNMean causes an HTBasic error if its argument is not a REAL array.
 
See Also
Median, Std, F_variance