<-- Previous || Up || Next -->

Range Array Function
Math Statistics Class

Public Function RangeArray( _
    ByRef vValues As Variant _
    ) As Variant

Range of numeric values.
Return the difference between the maximum and minimum values.
More efficient version of the Range Function but with restrictions on the arguments it accepts.

Examples:
    RangeArray(Array(56, 12, 34)) = 44
    RangeArray(SampleData) = 120
See also:
    Range Function
    MinimumArray Function
    MaximumArray Function
    Small Function
    Large Function
    Quartile Function
    Percentile Function
vValues: Numeric-type array or Variant array containing only numeric elements. This function is NOT affected by the current setting of the StatVarType Property. It assumes that vValues is an array that contains only numeric elements.
Return value: Function returns the difference between the maximum and minimum numeric values within the array. Function returns Null if there is some type of error, such as if the argument is a Variant array which contains an Object reference or String.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.