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

Geometric Mean Array Function
Math Statistics Class

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

Geometric mean of positive numeric values.
More efficient version of the GeometricMean Function but with restrictions on the arguments it accepts.

    GeometricMeanArray(Array(12, 34, 56)) = 28.3758837790029
    GeometricMeanArray(SampleData) = 143.25252990045
See also:
    GeometricMean Function
    HarmonicMeanArray Function
    AverageArray Function
    Median Function
    Mode Function
    GEOMEAN 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 geometric mean of the numeric values. Function returns Null if the array is empty, or 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.