Returns the minimum and maximum value of the elements of a vector.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function MinMax ( _ data As Vector _ ) As Double() |
| C# |
|---|
public static double[] MinMax ( Vector data ) |
| C++ |
|---|
public: static array<double>^ MinMax ( Vector^ data ) |
Parameters
Return Value
A two-element array containing the minimum and maximum value of the elements of data.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |