Vector Extensions.Quantile<T> Method
Gets the specified quantile.
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The quantile corresponding to the probability specified by probability.
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
)
Parameters
- 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
- T
Return Value
TThe 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).Exceptions
Argument | values is null. |
Argument | probability is less than zero or greater than 1. |