GenericDiscreteDistribution Class

Represents a discrete probability distribution with arbitrary probabilities.

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[SerializableAttribute]
public class GenericDiscreteDistribution : DiscreteDistribution
Inheritance
Object  →  Distribution  →  DiscreteDistribution  →  GenericDiscreteDistribution

Remarks

Use the GenericDiscreteDistribution class to represent a probability distribution with known probabilities that doesn't fit any of the standard discrete distributions.

A GenericDiscreteDistribution is defined by the first integer value for which the probability is nonzero, and the probabilities for this value and all subsequent nonzero values.

Constructors

GenericDiscreteDistribution(Double[]) Constructs a new GenericDiscreteDistribution object.
GenericDiscreteDistribution(Int32, Double[]) Constructs a new GenericDiscreteDistribution object.

Properties

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)
Mean Gets the mean or expectation value of the distribution.
(Overrides Distribution.Mean)
Mode Gets the mode of the distribution.
(Inherited from DiscreteDistribution)
NumberOfModes Gets the number of modes of the distribution.
(Inherited from DiscreteDistribution)
Skewness Gets the skewness of the distribution.
(Overrides Distribution.Skewness)
StandardDeviation Gets the standard deviation of the distribution.
(Inherited from Distribution)
StatisticSymbol 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

DistributionFunction Evaluates the cumulative distribution function of the distribution.
(Overrides DiscreteDistribution.DistributionFunction(Int32))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAllModes Returns an array that contains all the modes of the distribution.
(Inherited from DiscreteDistribution)
GetExpectedHistogram(Index<Interval<Int32>>, Double) Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
(Inherited from DiscreteDistribution)
GetExpectedHistogram(Index<Int32>, Double) Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
(Inherited from DiscreteDistribution)
GetExpectedHistogram(Int32, Int32, Double) Returns a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples.
(Inherited from DiscreteDistribution)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetRandomSequence() Returns a sequence of random samples from the distribution.
(Inherited from DiscreteDistribution)
GetRandomSequence(Random) Returns a sequence of random samples from the distribution.
(Inherited from DiscreteDistribution)
GetRandomSequence(Random, Int32) Returns a sequence of random samples of the specified length from the distribution.
(Inherited from DiscreteDistribution)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InverseDistributionFunction Returns the inverse of the distribution function.
(Overrides DiscreteDistribution.InverseDistributionFunction(Double))
LeftTailProbability Gets the probability of obtaining a sample that is less than or less than or equal to the specified upper bound.
(Inherited from DiscreteDistribution)
LogProbability Returns the logarithm of the probability of obtaining a specific integer value in the distribution.
(Inherited from DiscreteDistribution)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Probability(Int32) Evaluates the probability function of the distribution.
(Overrides DiscreteDistribution.Probability(Int32))
Probability(Int32, Int32) Gets the probability of obtaining a sample that falls within the specified interval from the distribution.
(Inherited from DiscreteDistribution)
RightTailProbability 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(Int32) Returns a vector of random samples from the distribution.
(Inherited from DiscreteDistribution)
Sample(Random) Returns a random sample from the distribution.
(Overrides DiscreteDistribution.Sample(Random))
Sample(Int32, Random) Returns a vector of random samples from the distribution.
(Inherited from DiscreteDistribution)
Sample(Random, Int32[]) Fills an Int32 array with random numbers.
(Inherited from DiscreteDistribution)
Sample(Random, Int32[], Int32, Int32) Fills an Int32 array with random numbers from this DiscreteDistribution.
(Inherited from DiscreteDistribution)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TwoTailProbability Gets the probability of obtaining a sample that is less than or less than or equal to the specified upper bound.
(Inherited from DiscreteDistribution)

See Also