| NMathFunctionsNaNHarmonicMean(Double) Method |
Calculates the harmonic mean of the given data, excluding NaN values.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double NaNHarmonicMean(
double[] data
)
Public Shared Function NaNHarmonicMean (
data As Double()
) As Double
public:
static double NaNHarmonicMean(
array<double>^ data
)
static member NaNHarmonicMean :
data : float[] -> float
Parameters
- data Double
- An array of doubles.
Return Value
DoubleHarmonic mean.
Remarks Harmonic mean = n / (( 1.0 / data[0]) + (1.0 / data[1]) + ...)
See Also