Click or drag to resize

Multinomial Class

Multivariate Multinomial distribution. For details about this distribution, see Wikipedia - Multinomial distribution.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.DistributionsMultinomial

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class Multinomial : IDistribution

The Multinomial type exposes the following members.

Constructors
 NameDescription
Public methodMultinomial(Double, Int32) Initializes a new instance of the Multinomial class.
Public methodMultinomial(Histogram, Int32) Initializes a new instance of the Multinomial class from histogram h. The distribution will not be automatically updated when the histogram changes.
Public methodMultinomial(Double, Int32, Random) Initializes a new instance of the Multinomial class.
Top
Properties
 NameDescription
Public propertyMean Gets the mean of the distribution.
Public propertyN Gets the number of trials.
Public propertyP Gets the proportion of ratios.
Public propertyRandomSource Gets or sets the random number generator which is used to draw random samples.
Public propertySkewness Gets the skewness of the distribution.
Public propertyVariance Gets the variance of the distribution.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsValidParameterSet Tests whether the provided values are valid parameters for this distribution.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodProbability Computes values of the probability mass function.
Public methodProbabilityLn Computes values of the log probability mass function.
Public methodSample Samples one multinomial distributed random variable.
Public methodStatic memberSample(Random, Double, Int32) Samples one multinomial distributed random variable.
Public methodSamples Samples a sequence multinomially distributed random variables.
Public methodStatic memberSamples(Random, Double, Int32) Samples a multinomially distributed random variable.
Public methodToString A string representation of the distribution.
(Overrides ObjectToString)
Top
Remarks
The distribution is parameterized by a vector of ratios: in other words, the parameter does not have to be normalized and sum to 1. The reason is that some vectors can't be exactly normalized to sum to 1 in floating point representation.
See Also