Gets the specified percentile.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function Percentile ( _ data As Double(), _ percent As Integer _ ) As Double |
| C# |
|---|
public double Percentile ( double[] data, int percent ) |
| C++ |
|---|
public: double Percentile ( array<double>^ data, int percent ) |
Parameters
- data ()
- A Double array.
- 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
| Exception | Condition |
|---|---|
| ArgumentNullException | data is nullNothingnullptr. |
| ArgumentOutOfRangeException | percent is less than zero or greater than 100. |