Returns the minimum and maximum value of the elements of an array.

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

Syntax

Visual Basic (Declaration)
Public Shared Function MinMax ( _
	data As Double() _
) As Double()
C#
public static double[] MinMax (
	double[] data
)
C++
public:
static array<double>^ MinMax (
	array<double>^ data
)

Parameters

data ()
A Double array.

Return Value

A two-element array containing the minimum and maximum value of the elements of data.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.