HTBasic Help
×
Menu
Index
Std
Standard deviation of an array.
 
Loading        LOADSUB ALL FROM "MEAN.HTS"
or LOADSUB FROM "MATHLIB.HTS"
 
Usage                REAL A(*),Y
Y=FNStd(A(*))
 
Description                
FNStd returns the standard deviation of the elements in the array A. The standard deviation is the square root of the average value of the squares of the differences between the elements in the array and the mean value of the elements. This version of the standard deviation uses the number of points in the array A, n, as the divisor in the averaging calculation, instead of the value n - 1 used in some formulas for standard deviation.
 
The F_variance subroutine returns the square of the standard deviation.
 
Errors                
FNStd causes an HTBasic error if its arguments are not of the types listed in the USAGE section, above.
 
See Also
Mean, F_variance