Stats.Min Max Method
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Min | Returns the minimum and maximum value of the elements of an array. |
Min | Returns the minimum and maximum value of the elements of an array. |
Min | Returns the minimum and maximum value of the elements of an array. |
Min | Returns the maximum value of the elements of an array. |
Min | Returns the minimum and maximum value of the elements of a numerical variable. |
Min | Returns the maximum value of the elements of an array. |
MinMax(DateTime[])
Returns the minimum and maximum value of the elements of an array.
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
ArgumentNullException | values is null. |
MinMax(Double[])
Returns the minimum and maximum value of the elements of an array.
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
ArgumentNullException | values is null. |
MinMax<T>(IList<T>)
Returns the maximum value of the elements of an array.
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
ArgumentNullException | values is null. |
MinMax(Int32[])
Returns the minimum and maximum value of the elements of an array.
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
ArgumentNullException | values is null. |
MinMax<T>(Vector<T>)
Returns the minimum and maximum value of the elements of a numerical variable.
public static T[] MinMax<T>(
Vector<T> values
)
Parameters
Type Parameters
- T
Return Value
T[]A two-element array containing the minimum and maximum value of the elements of values.
Exceptions
ArgumentNullException | values is null. |
MinMax<T>(IList<T>, IComparer<T>)
Returns the maximum value of the elements of an array.
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
ArgumentNullException | values is null. |