Click or drag to resize

NMathFunctionsHarmonicMean(Int32) 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(
	int[] data
)

Parameters

data  Int32
An array of doubles.

Return Value

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