Calculates the specified quartile of the elements in a data set.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

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

Parameters

data
Type: array< System..::.Int32 >[]()[]
An array of integers.
quartile
Type: System..::.Int32
A quartile between 0 and 4.

Return Value

Quartile.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if quartile is greater than four or less than zero.

See Also