public interface IntegerDistribution extends UnivariateDistribution<java.lang.Number>, DiscreteDistribution<java.lang.Number>
| Modifier and Type | Method and Description |
|---|---|
int |
sampleAsInt(java.util.Random random)
Draws a single random sample from the distribution as an int.
|
int[] |
sampleAsInts(java.util.Random random,
int sampleCount)
Samples values from this distribution as an array of ints.
|
void |
sampleInto(java.util.Random random,
int[] output,
int start,
int length)
Samples values from this distribution as an array of ints.
|
getCDF, getMaxSupport, getMeanAsDouble, getMinSupport, getVariancegetMeangetDomain, getDomainSize, getProbabilityFunctionsample, sample, sampleIntocloneint sampleAsInt(java.util.Random random)
random - The random number generator to use.int[] sampleAsInts(java.util.Random random,
int sampleCount)
random - Random number generator to use.sampleCount - The number of values to sample. Cannot be negativevoid sampleInto(java.util.Random random,
int[] output,
int start,
int length)
random - Random number generator to use.output - The array to write the result into. Cannot be null.start - The offset in the array to start writing at. Cannot be negative.length - The number of values to sample. Cannot be negative.