Gets the specified percentiles.

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

Syntax

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

Parameters

data ()
A Double array.
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.