AValid

Description:              This function returns the number of valid elements in an array sub-range.

Returns:                    Numeric

Usage:                       Script or Steady State

Format:                      AValid(ArrayElem, N)

Parameters:             ArrayElem   { array element }  { required }  { no default: }

                                                An array element. The subscript(s) for the array may be any numeric expression and specify the starting point for the array search. If not specified, the lowest dimension of a multidimensional array is used.

                                    N   { numeric }  { required }  { no default: }

                                                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 });

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

See Also:

AMax | AMin | ArrayOp1 | ArrayOp2 | FiltHigh | FiltLow | FitOffset | FitSlope | Mean | SDev | Sum | Valid | Variance| Array Functions