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

Average Array Function
Math Statistics Class

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

Average (mean) of numeric values.
More efficient version of the Average Function but with restrictions on the arguments it accepts.

    AverageArray(Array(12, 34, 56)) = 34
    AverageArray(SampleData) = 145.152173913043
See also:
    Average Function
    Median Function
    Mode Function
    GeometricMeanArray Function
    HarmonicMeanArray Function
    SumArray Function
    Count Function
    AVERAGE Function (Microsoft Excel)
    AVERAGEA Function (Microsoft Excel)
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 average (mean) of the numeric values. 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.
v1.5 Note: This function replaces the MeanVariantVector function, which has been removed from ArrayArithmetic Class. This function is slightly different in that it examines all of the elements in the array from its lower bound through its upper bound.

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