Click or drag to resize

CategoricalIsValidProbabilityMass Method

Checks whether the parameters of the distribution are valid.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool IsValidProbabilityMass(
	double[] p
)

Parameters

p  Double
An array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.

Return Value

Boolean
If any of the probabilities are negative returns false, or if the sum of parameters is 0.0; otherwise true
See Also