Discrete Distribution<T> Class
Represents a probability distribution over a countable set of objects.
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 DiscreteDistribution<T>
- Inheritance
- Object → DiscreteDistribution<T>
Type Parameters
- T
Remarks
The distribution of a variable is a description of the relative numbers of times each possible outcome will occur in a number of trials. The function describing the distribution is called the probability function.
A discrete probability distribution is a statistical distribution whose variables can take on only discrete values.
Constructors
Discrete | Constructs a new DiscreteDistribution<T> object. |
Discrete | Constructs a new DiscreteDistribution<T> object. |
Properties
Items | Gets the set of items in the distribution. |
Probabilities | Gets the probabilities of the items in the distribution. |
Methods
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 a histogram whose bins contain the expected number of samples from the distribution for a given total number of samples. |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Returns a sequence of random samples from the distribution. |
Get | Returns a sequence of random samples from the distribution. |
Get | Returns a sequence of random samples of the specified length from the distribution. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Probability | Returns the probability of obtaining a specific item in the distribution. |
Sample() | Returns a random sample from the distribution. |
Sample( | Returns a vector of random samples from the distribution. |
Sample( | Returns a random sample from the distribution. |
Sample( | Returns a vector of random samples from the distribution. |
Sample( | Fills an array with random samples. |
Sample( | Fills an array with random samples from this DiscreteDistribution<T>. |
Sample | Returns the level index of a random sample from the distribution. |
Sample | Fills an array with the level indexes of random samples from this DiscreteDistribution<T>. |
ToString | Returns a string that represents the current object. (Inherited from Object) |