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