CategoricalSamples(Int32, Double) Method |
Fills an array with samples generated from the distribution.
Namespace: Altaxo.Calc.DistributionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void Samples(
int[] values,
double[] probabilityMass
)
Parameters
- values Int32
- The array to fill with the samples.
- probabilityMass Double
- An array of nonnegative ratios. Not assumed to be normalized.
Return Value
random integers between 0 and the size of the categorical (exclusive).
See Also