Returns the geometric mean of the variable.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function GetGeometricMean As Double |
| C# |
|---|
public double GetGeometricMean () |
| C++ |
|---|
public: double GetGeometricMean () |
Return Value
The geometric mean of the variable.
Remarks
The geometric mean is the nth root of the product of the data values.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | One or more of the data values is negative. |