COBOL Manual for TNS/E Programs (H06.03+)

Intrinsic Functions
HP COBOL Manual for TNS/E Programs520347-003
14-56
STANDARD-DEVIATION Function
STANDARD-DEVIATION Function
STANDARD-DEVIATION, a numeric function, returns a value that approximates the
standard deviation of its arguments.
argument
is a numeric argument.
argument can be an array; for example,
FUNCTION STANDARD-DEVIATION (ARRAY1(ALL))
returns a value that approximates the standard deviation of the elements of the
array ARRAY1.
The returned value is the approximation of the standard deviation of the argument
series.
If there is only one argument, or if every argument is a variable occurrence data
item and the total number of occurrences for all of them is one, the returned value is
zero; otherwise, the returned value is approximately
where n is the number of arguments.
( )
STANDARD-DEVIATIONFUNCTION argument
VST462.vsd
argument
i
FUNCTION MEAN argument
1
argument,
n
(, )()
2
i 1=
n
n
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------