IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Represents a geometric distribution. More...
Public Member Functions | |||
GeometricDistribution (double p) | |||
Initializes a new geometric distribution. More... | |||
override double | ProbabilityMass (int k) | ||
Returns the probability of the obtaining the given value.
| |||
override double | LeftExclusiveProbability (int k) | ||
Computes the probability of obtaining a value less than the given value.
| |||
override double | RightExclusiveProbability (int k) | ||
Computes the probability of obtaining a value greater than the given value.
| |||
override int | InverseLeftProbability (double P) | ||
Computes the value corresponding to the given percentile.
| |||
override double | Moment (int r) | ||
Gets a raw moment of the distribution.
| |||
![]() | |||
virtual double | LeftInclusiveProbability (int k) | ||
Computes the probability of obtaining a value less than or equal to the given value. More... | |||
virtual double | ExpectationValue (Func< int, double > f) | ||
Computes the expectation value of an artibrary function. More... | |||
override double | MomentAboutMean (int r) | ||
Gets a central moment of the distribution. More... | |||
virtual int | GetRandomValue (Random rng) | ||
Produces a random integer drawn from the distribution. More... | |||
![]() | |||
virtual double | Cumulant (int r) | ||
Computes a cumulant of the distribution. More... | |||
Properties | |
override int | Minimum [get] |
override int | Maximum [get] |
override double | Mean [get] |
override double | Variance [get] |
override double | StandardDeviation [get] |
override double | Skewness [get] |
![]() | |
abstract int | Minimum [get] |
Gets the smallest value in the distribution. More... | |
abstract int | Maximum [get] |
Gets the largest value in the distribution. More... | |
override double | Mean [get] |
Gets the mean of the distribution. More... | |
![]() | |
virtual double | Mean [get] |
Gets the mean of the distribution. More... | |
virtual double | Variance [get] |
Gets the variance of the distribution. More... | |
virtual double | StandardDeviation [get] |
Gets the standard deviation of the distribution. More... | |
virtual double | Skewness [get] |
Gets the skewness of the distribution. More... | |
virtual double | ExcessKurtosis [get] |
Gets the excess kurtosis of the distribution. More... | |
Static Private Member Functions | |
static double | EulerianPolynomial (int n, double x) |
Private Attributes | |
readonly double | p |
readonly double | q |
Represents a geometric distribution.
The probability of obtaining each integer value in a geometric distribution is lower than the probability of obtaining the previous value by a constant factor. The probability thus decreases geometricly with the value, giving the distribution its name.
|
inline |
Initializes a new geometric distribution.
p | The probabability of the value zero. |
|
inlinevirtual |
Returns the probability of the obtaining the given value.
k | The value. |
Implements Meta.Numerics.Statistics.Distributions.DiscreteDistribution.
References Meta.Numerics.MoreMath.Pow().
|
inlinevirtual |
Computes the probability of obtaining a value less than the given value.
k | The value. |
Reimplemented from Meta.Numerics.Statistics.Distributions.DiscreteDistribution.
References Meta.Numerics.MoreMath.Pow().
|
inlinevirtual |
Computes the probability of obtaining a value greater than the given value.
k | The value. |
Reimplemented from Meta.Numerics.Statistics.Distributions.DiscreteDistribution.
References Meta.Numerics.MoreMath.Pow().
|
inlinevirtual |
Computes the value corresponding to the given percentile.
P | The percentile. |
Reimplemented from Meta.Numerics.Statistics.Distributions.DiscreteDistribution.
|
inlinevirtual |
Gets a raw moment of the distribution.
r | The order of the moment. |
Reimplemented from Meta.Numerics.Statistics.Distributions.DiscreteDistribution.
References Meta.Numerics.MoreMath.Pow().
|
inlinestaticprivate |
|
private |
|
private |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |