Click or drag to resize
Accord.NET (logo)

GeneralDiscreteDistribution Constructor (Boolean, Double)

Constructs a new generic discrete distribution.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public GeneralDiscreteDistribution(
	bool logarithm,
	params double[] probabilities
)
Request Example View Source

Parameters

logarithm
Type: SystemBoolean
True if the distribution should be represented using logarithms; false otherwise.
probabilities
Type: SystemDouble
The frequency of occurrence for each integer value in the distribution. The distribution is assumed to begin in the interval defined by start up to size of this vector.
See Also