Gets the specified percentiles.

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

Syntax

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

Parameters

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
ArgumentNullExceptionpercents is nullNothingnullptr.
ArgumentExceptionOne or more of the elements of percents is less than zero or greater than 100.