Click or drag to resize

DiscreteUniformDistribution Class

Describes a discrete uniform distribution.
Inheritance Hierarchy

Namespace:  Meta.Numerics.Statistics.Distributions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public sealed class DiscreteUniformDistribution : DiscreteDistribution

The DiscreteUniformDistribution type exposes the following members.

Constructors
  NameDescription
Public methodDiscreteUniformDistribution
Instantiates a new discrete uniform distribution with the given endpoints.
Top
Properties
  NameDescription
Public propertyExcessKurtosis
Gets the excess kurtosis of the distribution.
(Inherited from UnivariateDistribution.)
Public propertyMean
Gets the mean of the distribution.
(Overrides DiscreteDistributionMean.)
Public propertySkewness
Gets the skewness of the distribution.
(Overrides UnivariateDistributionSkewness.)
Public propertyStandardDeviation
Gets the standard deviation of the distribution.
(Inherited from UnivariateDistribution.)
Public propertySupport
Gets the interval over which the distribution is non-vanishing.
(Overrides DiscreteDistributionSupport.)
Public propertyVariance
Gets the variance of the distribution.
(Overrides UnivariateDistributionVariance.)
Top
Methods
  NameDescription
Public methodCentralMoment
Gets a central moment of the distribution.
(Overrides DiscreteDistributionCentralMoment(Int32).)
Public methodCumulant
Computes a cumulant of the distribution.
(Overrides UnivariateDistributionCumulant(Int32).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExpectationValue
Computes the expectation value of an artibrary function.
(Overrides DiscreteDistributionExpectationValue(FuncInt32, Double).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRandomValue
Produces a random integer drawn from the distribution.
(Inherited from DiscreteDistribution.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverseLeftProbability
Computes the value corresponding to the given percentile.
(Overrides DiscreteDistributionInverseLeftProbability(Double).)
Public methodLeftExclusiveProbability
Computes the probability of obtaining a value less than the given value.
(Overrides DiscreteDistributionLeftExclusiveProbability(Int32).)
Public methodLeftInclusiveProbability
Computes the probability of obtaining a value less than or equal to the given value.
(Inherited from DiscreteDistribution.)
Public methodProbabilityMass
Returns the probability of the obtaining the given value.
(Overrides DiscreteDistributionProbabilityMass(Int32).)
Public methodRawMoment
Gets a raw moment of the distribution.
(Inherited from DiscreteDistribution.)
Public methodRightExclusiveProbability
Computes the probability of obtaining a value greater than the given value.
(Overrides DiscreteDistributionRightExclusiveProbability(Int32).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
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).

See Also