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