UnivariateInverseLeftProbability Method |
Finds the sample value corresponding to a given percentile.
Namespace:
Meta.Numerics.Statistics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double InverseLeftProbability(
this IReadOnlyList<double> sample,
double P
)
<ExtensionAttribute>
Public Shared Function InverseLeftProbability (
sample As IReadOnlyList(Of Double),
P As Double
) As Double
public:
[ExtensionAttribute]
static double InverseLeftProbability(
IReadOnlyList<double>^ sample,
double P
)
[<ExtensionAttribute>]
static member InverseLeftProbability :
sample : IReadOnlyList<float> *
P : float -> float
Parameters
- sample
- Type: System.Collections.GenericIReadOnlyListDouble
The sample. - P
- Type: SystemDouble
The percentile, which must lie between zero and one.
Return Value
Type:
DoubleThe corresponding value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IReadOnlyListDouble. 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 Remarks For percentile inputs which do not lie exactly on a sample value,
this method interpolates linearly between the two nearest sample values.
Therefore you cannot be certain that the value returned will be contained in the sample.
See Also