Represents a discrete uniform distribution over an interval.

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Class DiscreteUniformDistribution _
	Inherits DiscreteDistribution
C#
public class DiscreteUniformDistribution : DiscreteDistribution
C++
public ref class DiscreteUniformDistribution : public DiscreteDistribution

Methods

IconTypeDescription
DistributionFunction(Int32)
Evaluates the cumulative distribution function of the distribution.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetExpectedHistogram(Double)
Gets a Histogram whose bins contain the expected number of samples for a given total number of samples.
GetExpectedHistogram(Int32, Int32, Double)
Gets a Histogram whose bins contain the expected number of samples for a given total number of samples.
GetHashCode()
Serves as a hash function for a particular type.
static memberGetRandomVariate(Random, Int32, Int32)
Gets a single sample from the uniform distribution over the specified interval.
static memberGetRandomVariate(Random, Int32)
Gets a single sample from the uniform distribution over the specified interval.
GetRandomVariate(Random)
Returns a random sample from the distribution.
GetRandomVariates(Random, Int32[]())
Fills an Int32 array with random numbers.
GetRandomVariates(Random, Int32[](), Int32, Int32)
Fills an Int32 array with random numbers from this DiscreteDistribution.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
Probability(Int32)
Evaluates the probability function of the distribution.
Probability(Int32, Int32)
Gets the probability of obtaining a sample that falls within the specified interval from the distribution.
ToString()
Returns a String that represents the current Object.

Constructors

IconTypeDescription
DiscreteUniformDistributionNew(Int32)
Constructs a new DiscreteUniformDistribution with the specified upper bound.
DiscreteUniformDistributionNew(Int32, Int32)
Constructs a new DiscreteUniformDistribution over the specified interval.

Properties

IconTypeDescription
Kurtosis
Gets the kurtosis of the distribution.
MaxValue
Gets the exclusive highest possible value.
Mean
Gets the mean or expectation value of the distribution.
MinValue
Gets the lowest possible value.
Skewness
Gets the skewness of the distribution.
StandardDeviation
Gets the standard deviation of the distribution.
Variance
Gets the variance of the distribution.

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.

Inheritance Hierarchy

System.Object
  Extreme.Statistics.Distributions.Distribution
    Extreme.Statistics.Distributions.DiscreteDistribution
      Extreme.Statistics.Distributions.DiscreteUniformDistribution