Stats.Quantile Method

Gets the specified quantile.

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
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

Double
The 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.

See Also