AValid

(Engine-Level Function)

Description: Returns the number of valid elements in an array sub-range.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Array.
Related to: AMax | AMin | ArrayOp1 | ArrayOp2 | FiltHigh | FiltLow | FitOffset | FitSlope | Mean | SDev | Sum| Valid | Variance | Array Functions
Threaded: No.
Format: AValid(ArrayElem, N)
Parameters:  
ArrayElem
Required. An array element. The subscript(s) for the array may be any numeric expression and specify the starting point for the array search.
If processing a multidimensional array, the usual rules apply to decide which dimension should be used.
N
Required. Any positive 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: AValid is not made invalid by invalid array entries. This function is useful in conjunction with the statistical array functions.

Example:

  numValid = AValid(data[0] { Starting element },
                    100 { Number of elements to search });

This example finds the number of array elements with valid values, by examining elements 0 to 99.