Click or drag to resize

NMathFunctionsNaNGeometricMean(DoubleVector) Method

Calculates the geometric mean of the given data, excluding NaN values.

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

Parameters

data  DoubleVector
A vector.

Return Value

Double
Geometric mean.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data has a length of zero.
Remarks
geometric mean = (data[0] * data[1] * ...) ^ (1/n)
See Also