Class InnerQuantiles
Represents a distribution using the quantiles at probabilities (1,...,n)/(n+1)
Inheritance
InnerQuantiles
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
[DataContract]
public class InnerQuantiles : CanGetQuantile<double>, CanGetProbLessThan<double>
Constructors
InnerQuantiles(Double[])
Declaration
public InnerQuantiles(double[] quantiles)
Parameters
Type |
Name |
Description |
Double[] |
quantiles |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
FromDistribution(Int32, CanGetQuantile<Double>)
Declaration
public static InnerQuantiles FromDistribution(int quantileCount, CanGetQuantile<double> canGetQuantile)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetProbBetween(Double, Double)
Returns the probability mass in an interval.
Declaration
public double GetProbBetween(double lowerBound, double upperBound)
Parameters
Returns
Type |
Description |
Double |
A number between 0 and 1, inclusive.
|
GetProbLessThan(Double)
Returns the probability of drawing a sample less than x.
Declaration
public double GetProbLessThan(double x)
Parameters
Type |
Name |
Description |
Double |
x |
|
Returns
Type |
Description |
Double |
A real number in [0,1].
|
GetProbLessThan(Double, IReadOnlyList<Double>)
Get the quantile rank of x.
Declaration
public static double GetProbLessThan(double x, IReadOnlyList<double> quantiles)
Parameters
Type |
Name |
Description |
Double |
x |
|
IReadOnlyList<Double> |
quantiles |
Cutpoints, sorted in increasing order, corresponding to probability i/(n+1)
|
Returns
Type |
Description |
Double |
A real number in [0,1]
|
GetProbLessThan(Double, Double[])
Get the quantile rank of x.
Declaration
public static double GetProbLessThan(double x, double[] quantiles)
Parameters
Type |
Name |
Description |
Double |
x |
Any real number.
|
Double[] |
quantiles |
Cutpoints, sorted in increasing order, corresponding to probability i/(n+1)
|
Returns
Type |
Description |
Double |
A real number in [0,1]
|
GetQuantile(Double)
Returns the largest value x such that GetProbLessThan(x) <= probability.
Declaration
public double GetQuantile(double probability)
Parameters
Type |
Name |
Description |
Double |
probability |
A real number in [0,1].
|
Returns
ToArray()
Declaration
public double[] ToArray()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements