Stats.MinMax Method

Definition

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

Overload List

MinMax(DateTime[]) Returns the minimum and maximum value of the elements of an array.
MinMax(Double[]) Returns the minimum and maximum value of the elements of an array.
MinMax(Int32[]) Returns the minimum and maximum value of the elements of an array.
MinMax<T>(IList<T>) Returns the maximum value of the elements of an array.
MinMax<T>(Vector<T>) Returns the minimum and maximum value of the elements of a numerical variable.
MinMax<T>(IList<T>, IComparer<T>) Returns the maximum value of the elements of an array.

MinMax(DateTime[])

Returns the minimum and maximum value of the elements of an array.
C#
public static DateTime[] MinMax(
	DateTime[] values
)

Parameters

values  DateTime[]
An DateTime array.

Return Value

DateTime[]
A two-element array containing the minimum and maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

MinMax(Double[])

Returns the minimum and maximum value of the elements of an array.
C#
public static double[] MinMax(
	double[] values
)

Parameters

values  Double[]
A Double array.

Return Value

Double[]
A two-element array containing the minimum and maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

MinMax<T>(IList<T>)

Returns the maximum value of the elements of an array.
C#
public static T[] MinMax<T>(
	IList<T> values
)
where T : Object, IComparable<T>

Parameters

values  IList<T>
A Double array.

Type Parameters

T
The type

Return Value

T[]
The maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

MinMax(Int32[])

Returns the minimum and maximum value of the elements of an array.
C#
public static int[] MinMax(
	int[] values
)

Parameters

values  Int32[]
An Int32 array.

Return Value

Int32[]
A two-element array containing the minimum and maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

MinMax<T>(Vector<T>)

Returns the minimum and maximum value of the elements of a numerical variable.
C#
public static T[] MinMax<T>(
	Vector<T> values
)

Parameters

values  Vector<T>
A Vector<T>.

Type Parameters

T

Return Value

T[]
A two-element array containing the minimum and maximum value of the elements of values.

Exceptions

ArgumentNullExceptionvalues is null.

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

Returns the maximum value of the elements of an array.
C#
public static T[] MinMax<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