DiscreteUniformDistribution Class

Describes a discrete uniform distribution.

Definition

Namespace: Meta.Numerics.Statistics.Distributions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public sealed class DiscreteUniformDistribution : DiscreteDistribution
Inheritance
Object    UnivariateDistribution    DiscreteDistribution    DiscreteUniformDistribution

Remarks

In a discrete uniform distribution, each integer in the allowed range is equally probable.

For example, the distribution of results for one roll of a fair die is DiscreteUniformDistribution(1,6).

Constructors

DiscreteUniformDistribution Instantiates a new discrete uniform distribution with the given endpoints.

Properties

ExcessKurtosis Gets the excess kurtosis of the distribution.
(Inherited from UnivariateDistribution)
Mean Gets the mean of the distribution.
(Overrides DiscreteDistributionMean)
Skewness Gets the skewness of the distribution.
(Overrides UnivariateDistributionSkewness)
StandardDeviation Gets the standard deviation of the distribution.
(Inherited from UnivariateDistribution)
Support Gets the interval over which the distribution is non-vanishing.
(Overrides DiscreteDistributionSupport)
Variance Gets the variance of the distribution.
(Overrides UnivariateDistributionVariance)

Methods

CentralMoment Gets a central moment of the distribution.
(Overrides DiscreteDistributionCentralMoment(Int32))
Cumulant Computes a cumulant of the distribution.
(Overrides UnivariateDistributionCumulant(Int32))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
ExpectationValue Computes the expectation value of an artibrary function.
(Overrides DiscreteDistributionExpectationValue(FuncInt32, Double))
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetRandomValue Produces a random integer drawn from the distribution.
(Inherited from DiscreteDistribution)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InverseLeftProbability Computes the value corresponding to the given percentile.
(Overrides DiscreteDistributionInverseLeftProbability(Double))
LeftExclusiveProbability Computes the probability of obtaining a value less than the given value.
(Overrides DiscreteDistributionLeftExclusiveProbability(Int32))
LeftInclusiveProbability Computes the probability of obtaining a value less than or equal to the given value.
(Inherited from DiscreteDistribution)
ProbabilityMass Returns the probability of the obtaining the given value.
(Overrides DiscreteDistributionProbabilityMass(Int32))
RawMoment Gets a raw moment of the distribution.
(Inherited from DiscreteDistribution)
RightExclusiveProbability Computes the probability of obtaining a value greater than the given value.
(Overrides DiscreteDistributionRightExclusiveProbability(Int32))
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also