Description: This function returns the statistical sample standard deviation for a subsection of an array.
Returns: Numeric
Usage: Script or Steady State
Format: SDev(ArrayElem, N)
Parameters: ArrayElem { array element (numeric) } { required } { no default }
Any array element giving the starting point in the array. The subscript for the array may be any numeric expression. Unless specified, the lowest dimension of a multidimensional array is used.
N { numeric } { required } { no default }
Any numeric expression giving the number of array elements to use starting at the element given by the first parameter. If N extends past the upper bound of the lowest array dimension, this computation will "wrap-around" and resume at element 0, until N elements have been processed.
Comments: The function returns an invalid result if either of its parameters is invalid or if there are less than two valid numerical array elements in the specified range. Invalid elements are not included in the calculation.
Example:
productStdDev = SDev(weight[0], 5);
This computes the standard deviation of elements 0 to 4 of the array weight.
See Also:
AMax | AMin | AValid | FiltHigh | FiltLow | FitOffset | FitSlope | Mean | Sum | Variance