Returns the geometric mean of the elements of an array.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function GeometricMean ( _
	data As Integer() _
) As Double
C#
public static double GeometricMean (
	int[] data
)
C++
public:
static double GeometricMean (
	array<int>^ data
)

Parameters

data ()
An Int32 array.

Return Value

The geometric mean of the elements of data.

Remarks

The geometric mean is a Double value.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.