Stats.Max Method
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Max(Double[]) | Returns the maximum value of the elements of an array. |
Max<T>(IList<T>) | Returns the maximum value of the elements of a list. |
Max<T>(IList<T>, IComparer<T>) | Returns the maximum value of the elements of an array. |
Max(Double[])
Returns the maximum value of the elements of an array.
public static double Max(
double[] values
)
Parameters
Return Value
DoubleThe maximum value of the elements of values.
Exceptions
Argument | values is null. |
Max<T>(IList<T>)
Returns the maximum value of the elements of a list.
public static T Max<T>(
IList<T> values
)
where T : Object, IComparable<T>
Parameters
- values IList<T>
- A list of values.
Type Parameters
- T
- The type
Return Value
TThe maximum value of the elements of values.
Exceptions
Argument | values is null. |
Max<T>(IList<T>, IComparer<T>)
Returns the maximum value of the elements of an array.
public static T Max<T>(
IList<T> values,
IComparer<T> comparer
)
Parameters
- values IList<T>
- A list of values.
- comparer IComparer<T>
- An IComparer<T> object that is used to compare instances of the generic type.
Type Parameters
- T
- The type
Return Value
TThe maximum value of the elements of values.
Exceptions
Argument | values is null. |