Categorical(Double) Constructor |
Initializes a new instance of the Categorical class.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public Categorical(
double[] probabilityMass
)
Parameters
- probabilityMass Double
- An array of nonnegative ratios: this array does not need to be normalized
as this is often impossible using floating point arithmetic.
Exceptions Exception | Condition |
---|
ArgumentException | If any of the probabilities are negative or do not sum to one. |
See Also