Gets the specified quantile.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static T Quantile<T>(
this Vector<T> values,
double probability,
int type = 7
)
<ExtensionAttribute>
Public Shared Function Quantile(Of T) (
values As Vector(Of T),
probability As Double,
Optional type As Integer = 7
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T Quantile(
Vector<T>^ values,
double probability,
int type = 7
)
[<ExtensionAttribute>]
static member Quantile :
values : Vector<'T> *
probability : float *
?type : int
(* Defaults:
let _type = defaultArg type 7
*)
-> 'T
Parameters
- values
- Type: Extreme.MathematicsVectorT
A VectorT. - probability
- Type: SystemDouble
A value between 0 and 1, inclusive. - type (Optional)
- Type: SystemInt32
The type of quantile to compute.
Type Parameters
- T
Return Value
Type:
T
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
VectorT. 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).
Reference