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

Harmonic Mean Function
Math Statistics Class

Public Function HarmonicMean( _
    ParamArray vValues() As Variant _
    ) As Variant

Harmonic mean of numeric arguments.

    HarmonicMean(12, 34, 56) = 22.970509383378
    HarmonicMean(SampleData) = 141.369758088961
See also:
    HarmonicMeanArray Function
    GeometricMean Function
    Average Function
    Median Function
    Mode Function
    StatVarType Property
    HARMEAN Function (Microsoft Excel)
vValues: The values that are to be averaged. Can be numbers, one-dimensional numeric arrays, one-dimensional Variant arrays, one-dimensional Variant arrays with embedded arrays, or any combination of these. The current setting of the StatVarType Property determines which numeric data types are recognized by this function.
Return value: Function returns the harmonic mean of the numeric values. Function returns Null if none of the arguments are numeric.

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