Stats.Quantile Method
Gets the specified quantile.
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The quantile corresponding to the quantileage specified by quantile.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static double Quantile(
this Vector<double> values,
double quantile
)
Parameters
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
Argument | values is null. |
Argument | quantile is less than zero or greater than 1. |