Click or drag to resize

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
)

Parameters

sample
Type: System.Collections.GenericIReadOnlyListDouble
The sample.
P
Type: SystemDouble
The percentile, which must lie between zero and one.

Return Value

Type: Double
The 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
ExceptionCondition
ArgumentNullExceptionsample is .
ArgumentOutOfRangeExceptionP lies outside [0,1].
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