Stats.Quantile Method

Gets the specified quantile.

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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

ArgumentNullExceptionvalues is null.
ArgumentOutOfRangeExceptionquantile is less than zero or greater than 1.

See Also