Click or drag to resize

NMathFunctionsHarmonicMean(DoubleVector) Method

Calculates the harmonic mean of the given data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double HarmonicMean(
	DoubleVector data
)

Parameters

data  DoubleVector
A vector.

Return Value

Double
Harmonic mean.
Remarks
Harmonic mean = n / ((1.0 / data[0]) + (1.0 / data[1]) + ...)
See Also