Click or drag to resize

FiniteDiscreteDistributionSetMasses Method

Sets the probabilities of the Values of this instance.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public void SetMasses(
	DoubleMatrix masses
)

Parameters

masses
Type: Novacta.AnalyticsDoubleMatrix
The probabilities assigned to the Values of this instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionmasses is null.
ArgumentOutOfRangeExceptionmasses 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