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 Min(Of T) ( _ data As IList(Of T), _ comparer As IComparer(Of T) _ ) As T |
| C# |
|---|
public static T Min<T> ( IList<T> data, IComparer<T> comparer ) |
| C++ |
|---|
public: generic<typename T> static T Min ( IList<T>^ data, IComparer<T>^ comparer ) |
Parameters
- data (System.Collections.Generic.IList<(Of T>)<>)
- A Double array.
- comparer (System.Collections.Generic.IComparer<(Of T>)<>)
- An IComparer<(Of T>) object that is used to compare instances of the generic type.
Return Value
The maximum value of the elements of data.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |