| NMathFunctionsHarmonicMean(DoubleVector) Method |
Calculates the harmonic mean of the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double HarmonicMean(
DoubleVector data
)
Public Shared Function HarmonicMean (
data As DoubleVector
) As Double
public:
static double HarmonicMean(
DoubleVector^ data
)
static member HarmonicMean :
data : DoubleVector -> float
Parameters
- data DoubleVector
- A vector.
Return Value
DoubleHarmonic mean.
Remarks Harmonic mean = n / ((1.0 / data[0]) + (1.0 / data[1]) + ...)
See Also