Class UnivariateDiscreteDistribution
Inheritance
Implements
Inherited Members
Namespace: Mars.Numerics.Statistics.Base
Assembly: Mars.Numerics.dll
Syntax
[Serializable]
public abstract class UnivariateDiscreteDistribution : DistributionBase, IFormattable, IUnivariateDistribution<int>, IUnivariateDistribution, IDistribution, ICloneable, IUnivariateDistribution<double>, ISampleableDistribution<double>, IRandomNumberGenerator<double>, ISampleableDistribution<int>, IRandomNumberGenerator<int>
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Properties
| Improve this Doc View SourceEntropy
Declaration
public abstract double Entropy { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's entropy. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Mean
Declaration
public abstract double Mean { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's mean value. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Median
Declaration
public virtual double Median { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's median value. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Mode
Declaration
public virtual double Mode { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's mode value. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Quartiles
Declaration
public virtual DoubleRange Quartiles { get; }
Property Value
Type | Description |
---|---|
DoubleRange | A DoubleRange object containing the first quartile (Q1) as its minimum value, and the third quartile (Q2) as the maximum. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Support
Declaration
public abstract IntRange Support { get; }
Property Value
Type | Description |
---|---|
IntRange | A IntRange containing the support interval for this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Variance
Declaration
public abstract double Variance { get; }
Property Value
Type | Description |
---|---|
System.Double | The distribution's variance. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Methods
| Improve this Doc View SourceBaseDistributionFunction(Int32)
Declaration
protected double BaseDistributionFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
BaseInverseDistributionFunction(Double)
p
using a numerical
approximation based on binary search.
Declaration
protected int BaseInverseDistributionFunction(double p)
Parameters
Type | Name | Description |
---|---|---|
System.Double | p | A probability value between 0 and 1. |
Returns
Type | Description |
---|---|
System.Int32 | A sample which could original the given probability value when applied in the DistributionFunction(Int32). |
Remarks
ComplementaryDistributionFunction(Int32, Boolean)
k
.
This function is also known as the Survival function.
Declaration
public double ComplementaryDistributionFunction(int k, bool inclusive)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
System.Boolean | inclusive | True to return P(X >= x), false to return P(X > x). Default is false. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
Examples
// Compute P(X = k)
double equal = dist.ProbabilityMassFunction(k: 1);
// Compute P(X < k)
double less = dist.DistributionFunction(k: 1, inclusive: false);
// Compute P(X ≤ k)
double lessThanOrEqual = dist.DistributionFunction(k: 1, inclusive: true);
// Compute P(X > k)
double greater = dist.ComplementaryDistributionFunction(k: 1);
// Compute P(X ≥ k)
double greaterThanOrEqual = dist.ComplementaryDistributionFunction(k: 1, inclusive: true);
|
Improve this Doc
View Source
ComplementaryDistributionFunction(Int32)
k
.
This function is also known as the Survival function.
Declaration
public double ComplementaryDistributionFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
CumulativeHazardFunction(Int32)
x
.
Declaration
public virtual double CumulativeHazardFunction(int x)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The cumulative hazard function H(x)
evaluated at x in the current distribution.
|
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
DistributionFunction(Double[])
Declaration
public double DistributionFunction(double[] x)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
DistributionFunction(Int32, Boolean)
k
, depending
on the value of the inclusive
parameter.
Declaration
public double DistributionFunction(int k, bool inclusive)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
System.Boolean | inclusive | True to return P(X ≤ x), false to return P(X < x). Default is true. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
Examples
// Compute P(X = k)
double equal = dist.ProbabilityMassFunction(k: 1);
// Compute P(X < k)
double less = dist.DistributionFunction(k: 1, inclusive: false);
// Compute P(X ≤ k)
double lessThanOrEqual = dist.DistributionFunction(k: 1, inclusive: true);
// Compute P(X > k)
double greater = dist.ComplementaryDistributionFunction(k: 1);
// Compute P(X ≥ k)
double greaterThanOrEqual = dist.ComplementaryDistributionFunction(k: 1, inclusive: true);
|
Improve this Doc
View Source
DistributionFunction(Int32, Int32)
P(a < X ≤ b)
.
Declaration
public double DistributionFunction(int a, int b)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | a | The start of the semi-closed interval (a; b]. |
System.Int32 | b | The end of the semi-closed interval (a; b]. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
DistributionFunction(Int32)
k
.
Declaration
public double DistributionFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
Generate()
Declaration
public int Generate()
Returns
Type | Description |
---|---|
System.Int32 | A random observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(FastRandom)
Declaration
public virtual int Generate(FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
Mars.Common.Core.Random.FastRandom | source | The random number generator to use as a source of randomness. Default is to use System.Random. |
Returns
Type | Description |
---|---|
System.Int32 | A random observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(Int32, FastRandom)
Declaration
public int[] Generate(int samples, FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | The number of samples to generate. |
Mars.Common.Core.Random.FastRandom | source | The random number generator to use as a source of randomness. Default is to use System.Random. |
Returns
Type | Description |
---|---|
System.Int32[] | A random vector of observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(Int32, Double[], FastRandom)
Declaration
public virtual double[] Generate(int samples, double[] result, FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | The number of samples to generate. |
System.Double[] | result | The location where to store the samples. |
Mars.Common.Core.Random.FastRandom | source | The random number generator to use as a source of randomness. Default is to use System.Random. |
Returns
Type | Description |
---|---|
System.Double[] | A random vector of observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(Int32, Double[])
Declaration
public double[] Generate(int samples, double[] result)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | The number of samples to generate. |
System.Double[] | result | The location where to store the samples. |
Returns
Type | Description |
---|---|
System.Double[] | A random vector of observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(Int32, Int32[], FastRandom)
Declaration
public virtual int[] Generate(int samples, int[] result, FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | The number of samples to generate. |
System.Int32[] | result | The location where to store the samples. |
Mars.Common.Core.Random.FastRandom | source | The random number generator to use as a source of randomness. Default is to use System.Random. |
Returns
Type | Description |
---|---|
System.Int32[] | A random vector of observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(Int32, Int32[])
Declaration
public int[] Generate(int samples, int[] result)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | The number of samples to generate. |
System.Int32[] | result | The location where to store the samples. |
Returns
Type | Description |
---|---|
System.Int32[] | A random vector of observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Generate(Int32)
Declaration
public int[] Generate(int samples)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | The number of samples to generate. |
Returns
Type | Description |
---|---|
System.Int32[] | A random vector of observations drawn from this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
GetRange(Double)
Declaration
public virtual IntRange GetRange(double percentile)
Parameters
Type | Name | Description |
---|---|---|
System.Double | percentile | The percentile at which the distribution ranges will be returned. |
Returns
Type | Description |
---|---|
IntRange | A DoubleRange object containing the minimum value for the distribution value, and the third quartile (Q2) as the maximum. |
Remarks
0.25
is passed as the percentile
argument,
this function returns the same as the Quartiles function.
HazardFunction(Int32)
x
.
Declaration
public virtual double HazardFunction(int x)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The conditional failure density function h(x)
evaluated at x in the current distribution.
|
Remarks
InnerComplementaryDistributionFunction(Int32)
k
.
This function is also known as the Survival function.
Declaration
protected virtual double InnerComplementaryDistributionFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
InnerDistributionFunction(Int32)
k
.
Declaration
protected abstract double InnerDistributionFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
InnerInverseDistributionFunction(Double)
p
. This function
is also known as the Quantile function.
Declaration
protected virtual int InnerInverseDistributionFunction(double p)
Parameters
Type | Name | Description |
---|---|---|
System.Double | p | A probability value between 0 and 1. |
Returns
Type | Description |
---|---|
System.Int32 | A sample which could original the given probability value when applied in the DistributionFunction(Int32). |
Remarks
InnerLogProbabilityMassFunction(Int32)
x
.
Declaration
protected virtual double InnerLogProbabilityMassFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The logarithm of the probability of x
occurring in the current distribution.
|
Remarks
k
will occur.
InnerProbabilityMassFunction(Int32)
x
.
Declaration
protected abstract double InnerProbabilityMassFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The probability of k occurring
in the current distribution.
|
Remarks
x
will occur.
InverseDistributionFunction(Double)
p
. This function
is also known as the Quantile function.
Declaration
public int InverseDistributionFunction(double p)
Parameters
Type | Name | Description |
---|---|---|
System.Double | p | A probability value between 0 and 1. |
Returns
Type | Description |
---|---|
System.Int32 | A sample which could original the given probability value when applied in the DistributionFunction(Int32). |
Remarks
LogCumulativeHazardFunction(Int32)
x
.
Declaration
public virtual double LogCumulativeHazardFunction(int x)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The logarithm of the cumulative hazard function H(x)
evaluated at x in the current distribution.
|
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
LogProbabilityMassFunction(Int32)
x
.
Declaration
public double LogProbabilityMassFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The logarithm of the probability of x
occurring in the current distribution.
|
Remarks
k
will occur.
ProbabilityFunction(Double)
Declaration
public double ProbabilityFunction(double x)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ProbabilityFunction(Double[])
Declaration
public double ProbabilityFunction(double[] x)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ProbabilityFunction(Int32)
Declaration
public double ProbabilityFunction(int x)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ProbabilityMassFunction(Int32)
x
.
Declaration
public double ProbabilityMassFunction(int k)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | k | A single point in the distribution range. |
Returns
Type | Description |
---|---|
System.Double |
The probability of k occurring
in the current distribution.
|
Remarks
x
will occur.
QuantileDensityFunction(Double)
p
.
Declaration
public virtual double QuantileDensityFunction(double p)
Parameters
Type | Name | Description |
---|---|---|
System.Double | p | A probability value between 0 and 1. |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
Explicit Interface Implementations
| Improve this Doc View SourceIRandomNumberGenerator<Double>.Generate()
Declaration
double IRandomNumberGenerator<double>.Generate()
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IRandomNumberGenerator<Double>.Generate(Int32)
Declaration
double[] IRandomNumberGenerator<double>.Generate(int samples)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples |
Returns
Type | Description |
---|---|
System.Double[] |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ISampleableDistribution<Double>.Generate(FastRandom)
Declaration
double ISampleableDistribution<double>.Generate(FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
Mars.Common.Core.Random.FastRandom | source |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ISampleableDistribution<Double>.Generate(Double, FastRandom)
Declaration
double ISampleableDistribution<double>.Generate(double result, FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
System.Double | result | |
Mars.Common.Core.Random.FastRandom | source |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ISampleableDistribution<Double>.Generate(Double)
Declaration
double ISampleableDistribution<double>.Generate(double result)
Parameters
Type | Name | Description |
---|---|---|
System.Double | result |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ISampleableDistribution<Double>.Generate(Int32, FastRandom)
Declaration
double[] ISampleableDistribution<double>.Generate(int samples, FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | samples | |
Mars.Common.Core.Random.FastRandom | source |
Returns
Type | Description |
---|---|
System.Double[] |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ISampleableDistribution<Int32>.Generate(Int32, FastRandom)
Declaration
int ISampleableDistribution<int>.Generate(int result, FastRandom source)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | result | |
Mars.Common.Core.Random.FastRandom | source |
Returns
Type | Description |
---|---|
System.Int32 |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
ISampleableDistribution<Int32>.Generate(Int32)
Declaration
int ISampleableDistribution<int>.Generate(int result)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | result |
Returns
Type | Description |
---|---|
System.Int32 |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IUnivariateDistribution<Double>.CumulativeHazardFunction(Double)
Declaration
double IUnivariateDistribution<double>.CumulativeHazardFunction(double x)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IUnivariateDistribution<Double>.HazardFunction(Double)
Declaration
double IUnivariateDistribution<double>.HazardFunction(double x)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IUnivariateDistribution<Double>.InverseDistributionFunction(Double)
Declaration
double IUnivariateDistribution<double>.InverseDistributionFunction(double p)
Parameters
Type | Name | Description |
---|---|---|
System.Double | p |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IUnivariateDistribution<Double>.Support
Declaration
DoubleRange IUnivariateDistribution<double>.Support { get; }
Returns
Type | Description |
---|---|
DoubleRange | A DoubleRange containing the support interval for this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IUnivariateDistribution<Int32>.Support
Declaration
DoubleRange IUnivariateDistribution<int>.Support { get; }
Returns
Type | Description |
---|---|
DoubleRange | A DoubleRange containing the support interval for this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IUnivariateDistribution.GetRange(Double)
Declaration
DoubleRange IUnivariateDistribution.GetRange(double percentile)
Parameters
Type | Name | Description |
---|---|---|
System.Double | percentile | The percentile at which the distribution ranges will be returned. |
Returns
Type | Description |
---|---|
DoubleRange | A DoubleRange object containing the minimum value for the distribution value, and the third quartile (Q2) as the maximum. |
Remarks
0.25
is passed as the percentile
argument,
this function returns the same as the Quartiles function.
IUnivariateDistribution.Support
Declaration
DoubleRange IUnivariateDistribution.Support { get; }
Returns
Type | Description |
---|---|
DoubleRange | A DoubleRange containing the support interval for this distribution. |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References:
IDistribution.DistributionFunction(Double[])
x
.
Declaration
double IDistribution.DistributionFunction(double[] x)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x | A single point in the distribution range. For a univariate distribution, this should be a single double value. For a multivariate distribution, this should be a double array. |
Returns
Type | Description |
---|---|
System.Double |
The probability of x occurring
in the current distribution.
|
Remarks
x
will occur.
IDistribution.ProbabilityFunction(Double[])
Declaration
double IDistribution.ProbabilityFunction(double[] x)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | x |
Returns
Type | Description |
---|---|
System.Double |
Remarks
A probability distribution identifies either the probability of each value of an unidentified random variable (when the variable is discrete), or the probability of the value falling within a particular interval (when the variable is continuous).
The probability distribution describes the range of possible values that a random variable can attain and the probability that the value of the random variable is within any (measurable) subset of that range.
The function describing the probability that a given discrete value will occur is called the probability function (or probability mass function, abbreviated PMF), and the function describing the cumulative probability that a given value or any value smaller than it will occur is called the distribution function (or cumulative distribution function, abbreviated CDF).
References: