Gets the specified percentile.

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

Syntax

Visual Basic (Declaration)
Public Function GetPercentile ( _
	percent As Integer _
) As Double
C#
public double GetPercentile (
	int percent
)
C++
public:
double GetPercentile (
	int percent
)

Parameters

percent (System.Int32)
An integer between 0 and 100, inclusive.

Return Value

The percentile corresponding to the percentage specified by percent.

Remarks

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

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionpercent is less than zero or greater than 100.