Stats.Percentile<T>(Vector<T>, Int 32, Int 32) Method
Gets the specified percentile.
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The percentile corresponding to the percentage specified by percent.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static T Percentile<T>(
this Vector<T> values,
int percent,
int type = 7
)
Parameters
- values Vector<T>
- A Vector<T>.
- percent Int32
- An integer between 0 and 100, inclusive.
- type Int32 (Optional)
- The type of quantile to compute.
Type Parameters
- T
Return Value
TThe percentile corresponding to the percentage specified by percent.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
If the percentile falls between two observations, it is interpolated between the adjacent observations.
Exceptions
ArgumentNullException | values is null. |
ArgumentOutOfRangeException | percent is less than zero or greater than 100. |