Returns the maximum value of the elements of an array.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function MinMax(Of T) ( _
	data As IList(Of T), _
	comparer As IComparer(Of T) _
) As T()
C#
public static T[] MinMax<T> (
	IList<T> data,
	IComparer<T> comparer
)
C++
public:
generic<typename T>
static array<T>^ MinMax (
	IList<T>^ data, 
	IComparer<T>^ comparer
)

Parameters

data (System.Collections.Generic.IList<(Of T>)<>)
A Double array.
comparer (System.Collections.Generic.IComparer<(Of T>)<>)
An IComparer<(Of T>) object that is used to compare instances of the generic type.

Return Value

The maximum value of the elements of data.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.