CategoricalIsValidProbabilityMass Method |
Checks whether the parameters of the distribution are valid.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
BooleanIf any of the probabilities are negative returns
false, or if the sum of parameters is 0.0; otherwise
trueSee Also