Click or drag to resize

NMathFunctionsNaNHarmonicMean(IDFColumn) Method

Calculates the harmonic mean of the given data, excluding missing values.

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

Parameters

data  IDFColumn
A column.

Return Value

Double
Harmonic mean.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data is not numeric.
Remarks
Harmonic mean = n / (( 1.0 / data[0]) + (1.0 / data[1]) + ...)
See Also