VectorExtensions.Quantile<T> Method

Gets the specified quantile.


Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static T Quantile<T>(
	this Vector<T> values,
	double probability,
	int type = 7


values  Vector<T>
A Vector<T>.
probability  Double
A value between 0 and 1, inclusive.
type  Int32  (Optional)
The type of quantile to compute.

Type Parameters


Return Value

The quantile corresponding to the probability specified by probability.

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).


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

See Also