Click or drag to resize

MultinomialIsValidParameterSet Method

Tests whether the provided values are valid parameters for this distribution.

Namespace: Altaxo.Calc.Distributions
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool IsValidParameterSet(
	IEnumerable<double> p,
	int n
)

Parameters

p  IEnumerableDouble
An array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
n  Int32
The number of trials.

Return Value

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