MultinomialIsValidParameterSet Method |
Tests whether the provided values are valid parameters for this distribution.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
BooleanIf 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