Discrete Uniform Distribution Class
Represents a discrete uniform distribution over an interval.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
[SerializableAttribute]
public class DiscreteUniformDistribution : DiscreteDistribution
- Inheritance
- Object → Distribution → DiscreteDistribution → DiscreteUniformDistribution
Remarks
Use the DiscreteUniformDistribution class to represent a discrete probability distribution with a probability function that is constant over an interval. The distribution has two parameters: MinValue and MaxValue that specify the boundaries of the interval. Note that MaxValue is an exclusive upper bound: the probability of obtaining the upper bound is zero.
Constructors
Discrete | Constructs a new DiscreteUniformDistribution with the specified upper bound. |
Discrete | Estimates the parameter of the distribution of a variable assuming it follows a discrete uniform distribution. |
Discrete | Constructs a new DiscreteUniformDistribution over the specified interval. |
Properties
Capabilities |
Gets a value that indicates the capabilities of the distribution class.
(Inherited from Distribution) |
Entropy |
Gets the entropy of the distribution.
(Overrides Distribution.Entropy) |
IsUnimodal |
Gets whether the distribution has one or more modes.
(Inherited from DiscreteDistribution) |
Kurtosis |
Gets the kurtosis of the distribution.
(Overrides Distribution.Kurtosis) |
Max | Gets the exclusive highest possible value. |
Mean |
Gets the mean or expectation value of the distribution.
(Overrides Distribution.Mean) |
Min | Gets the lowest possible value. |
Mode |
Gets the mode of the distribution.
(Overrides DiscreteDistribution.Mode) |
Number |
Gets the number of modes of the distribution.
(Overrides DiscreteDistribution.NumberOfModes) |
Skewness |
Gets the skewness of the distribution.
(Overrides Distribution.Skewness) |
Standard |
Gets the standard deviation of the distribution.
(Inherited from Distribution) |
Statistic |
Gets the common symbol to describe a statistic
from the distribution.
(Inherited from Distribution) |
Variance |
Gets the variance of the distribution.
(Overrides Distribution.Variance) |
Methods
Distribution |
Gets the probability of obtaining an outcome less than
or equal to a specified value.
(Overrides DiscreteDistribution.DistributionFunction(Int32)) |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Get |
Returns an array that contains all the modes of the distribution.
(Overrides DiscreteDistribution.GetAllModes()) |
Get | Gets a vector whose bins contain the expected number of samples for a given total number of samples. |
Get |
Returns a histogram whose bins contain the expected number of samples
from the distribution for a given total number of samples.
(Inherited from DiscreteDistribution) |
Get |
Returns a histogram whose bins contain the expected number of samples
from the distribution for a given total number of samples.
(Inherited from DiscreteDistribution) |
Get |
Returns a histogram whose bins contain the expected number of samples
from the distribution for a given total number of samples.
(Inherited from DiscreteDistribution) |
Get | Serves as the default hash function. (Inherited from Object) |
Get |
Returns a sequence of random samples from the distribution.
(Inherited from DiscreteDistribution) |
Get |
Returns a sequence of random samples from the distribution.
(Inherited from DiscreteDistribution) |
Get |
Returns a sequence of random samples of the specified length from the distribution.
(Inherited from DiscreteDistribution) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Inverse |
Returns the inverse of the distribution function.
(Overrides DiscreteDistribution.InverseDistributionFunction(Double)) |
Left |
Gets the probability of obtaining a sample that is less than or less than or equal to the specified upper bound.
(Inherited from DiscreteDistribution) |
Log |
Returns the logarithm of the probability of obtaining
a specific integer value in the distribution.
(Inherited from DiscreteDistribution) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Probability( |
Returns the probability of obtaining a specific integer
value in the distribution.
(Overrides DiscreteDistribution.Probability(Int32)) |
Probability( |
Gets the probability of obtaining a sample that falls
within the specified interval from the distribution.
(Overrides DiscreteDistribution.Probability(Int32, Int32)) |
Right |
Gets the probability of obtaining a sample that is less than or less than or equal to the specified upper bound.
(Inherited from DiscreteDistribution) |
Sample() |
Returns a random sample from the distribution.
(Inherited from DiscreteDistribution) |
Sample( |
Returns a vector of random samples from the distribution.
(Inherited from DiscreteDistribution) |
Sample( |
Returns a random sample from the distribution.
(Overrides DiscreteDistribution.Sample(Random)) |
Sample( |
Returns a vector of random samples from the distribution.
(Inherited from DiscreteDistribution) |
Sample( |
Fills an Int32 array with random numbers.
(Inherited from DiscreteDistribution) |
Sample( | Gets a single sample from the uniform distribution over the specified interval. |
Sample( | Gets a single sample from the uniform distribution over the specified interval. |
Sample( |
Fills an Int32 array with random numbers from this DiscreteDistribution.
(Inherited from DiscreteDistribution) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Two |
Gets the probability of obtaining a sample that is less than or less than or equal to the specified upper bound.
(Inherited from DiscreteDistribution) |