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 Max(Of T As {Object, }) ( _
	data As IList(Of T) _
) As T
C#
public static T Max<T> (
	IList<T> data
) where T : Object, 
C++
public:
generic<typename T>
where T : Object, 
static T Max (
	IList<T>^ data
)

Parameters

data (System.Collections.Generic.IList<(Of T>)<>)
A Double array.

Return Value

The maximum value of the elements of data.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.