FiniteDiscreteDistribution.SetMasses Method

Sets the probabilities of the Values of this instance.

Definition

Namespace: Novacta.Analytics
Assembly: Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.1.0+428f3840cfab98dda567bb0ed350b302533e273a
C#
public void SetMasses(
	DoubleMatrix masses
)

Parameters

masses  DoubleMatrix
The probabilities assigned to the Values of this instance.

Exceptions

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