Returns the mean of the elements of an array.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Mean ( _ data As Integer() _ ) As Double |
| C# |
|---|
public static double Mean ( int[] data ) |
| C++ |
|---|
public: static double Mean ( array<int>^ data ) |
Parameters
- data ()
- An Int32 array.
Return Value
The mean of the elements of data.
Remarks
The mean is a Double value.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |