Stats.Min Method

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Min(Double[]) Returns the minimum value of the elements of an array.
Min<T>(IList<T>) Returns the minimum value of the elements of a list.
Min<T>(IList<T>, IComparer<T>) Returns the maximum value of the elements of an array.

Min(Double[])

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

Parameters

values  Double[]
A Double array.

Return Value

Double
The minimum value of the elements of values.

Exceptions

ArgumentNullException

values is null.

Min<T>(IList<T>)

Returns the minimum value of the elements of a list.
C#
public static T Min<T>(
	IList<T> values
)
where T : Object, IComparable<T>

Parameters

values  IList<T>
A list of items.

Type Parameters

T
The type

Return Value

T
The minimum value of the elements of values.

Exceptions

ArgumentNullException

values is null.

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

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

ArgumentNullException

values is null.

See Also