Stats.Max Method

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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.
C#
public static double Max(
	double[] values
)

Parameters

values  Double[]
A Double array.

Return Value

Double
The maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

Max<T>(IList<T>)

Returns the maximum value of the elements of a list.
C#
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

T
The maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

Max<T>(IList<T>, IComparer<T>)

Returns the maximum value of the elements of an array.
C#
public static T Max<T>(
	IList<T> values,
	IComparer<T> comparer
)

Parameters

values  IList<T>
A Double array.
comparer  IComparer<T>
An IComparer<T> object that is used to compare instances of the generic type.

Type Parameters

T
The type

Return Value

T
The maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

See Also