Click or drag to resize

FiniteDiscreteDistribution Constructor

Initializes a new instance of the FiniteDiscreteDistribution class having the specified values and masses.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public FiniteDiscreteDistribution(
	DoubleMatrix values,
	DoubleMatrix masses
)

Parameters

values
Type: Novacta.AnalyticsDoubleMatrix
The distinct values whose probabilities are explicitly assigned.
masses
Type: Novacta.AnalyticsDoubleMatrix
The probabilities assigned to the values.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalues is null.
-or-
masses is null.
ArgumentOutOfRangeExceptionvalues contains at least two identical entries.
-or-
masses contains at least an entry which does not belong to the interval [0, 1].
-or-
The sum of the entries in masses is not equal to 1.
ArgumentExceptionmasses has not the same dimensions of Values.
See Also