Gets the specified percentiles.

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

Syntax

Visual Basic (Declaration)
Public Function Percentiles ( _
	data As NumericalVariable, _
	percents As Integer() _
) As Double()
C#
public double[] Percentiles (
	NumericalVariable data,
	int[] percents
)
C++
public:
array<double>^ Percentiles (
	NumericalVariable^ data, 
	array<int>^ percents
)

Parameters

data (Extreme.Statistics.NumericalVariable)
A NumericalVariable.
percents ()
An array of integers between 0 and 100, inclusive.

Return Value

A Double array containing the percentiles for to the percentage specified by the corresponding elements of percents.

Remarks

If a percentile falls between two observations, it is interpolated between the adjacent observations.

Exceptions

ExceptionCondition
ArgumentNullExceptiondata is nullNothingnullptr.

-or-

percents is nullNothingnullptr.

ArgumentExceptionOne or more of the elements of percents is less than zero or greater than 100.