public class DistUniformDiscrete<C extends java.lang.Enum<C>> extends DistributionCategorical<C> implements java.io.Serializable
DistributionCategorical.RangeCUMULATIVE_PROB_TOLERANCE| Constructor and Description |
|---|
DistUniformDiscrete(java.lang.Class<C> categoryEnumType)
Create an instance where sampling returns a Java enum category.
|
DistUniformDiscrete(int min,
int max)
Create an instance returning an integer value from a single range.
|
| Modifier and Type | Method and Description |
|---|---|
Distribution |
createUnregisteredCopy()
Create an unregistered copy of this distribution.
|
DistributionCategorical.Range |
getRange()
Get the Range (DistributionCategorical.Range) for this distribution.
|
void |
setRange(int min,
int max)
Change or add a range for the distribution.
|
java.lang.String |
toString()
Custom toString implementation.
|
addRange, clearRanges, getK, isLocked, lock, sampleCategory, unlock, usesEnumCategory, usesMappedRangessampleDouble, sampleIntcreateRegisteredCopygetSampler, registerAccessInfo, registerSamplerpublic DistUniformDiscrete(java.lang.Class<C> categoryEnumType)
categoryEnumType - The type (Class instance) of the category enum.public DistUniformDiscrete(int min,
int max)
min - The range minimum.max - The range maximum.public void setRange(int min,
int max)
min - The revised range minimum.max - The revised range maximum.public DistributionCategorical.Range getRange()
public java.lang.String toString()
toString in class DistributionCategorical<C extends java.lang.Enum<C>>"DiscreteUniform(1,10)".public Distribution createUnregisteredCopy()
createUnregisteredCopy in class Distribution