Stats.Quantile Method
Gets the specified quantile.
Definition
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The quantile corresponding to the quantileage specified by quantile.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static double Quantile(
this Vector<double> values,
double quantile
)
Parameters
- values Vector<Double>
- A vector.
- quantile Double
- A value between 0 and 1, inclusive.
Return Value
DoubleThe quantile corresponding to the quantileage specified by quantile.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<Double>. 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 quantile falls between two observations, it is interpolated between the adjacent observations.
Exceptions
ArgumentNullException | values is null. |
ArgumentOutOfRangeException | quantile is less than zero or greater than 1. |