public static enum CompositeSamplers.DiscreteProbabilitySampler extends Enum<CompositeSamplers.DiscreteProbabilitySampler> implements CompositeSamplers.DiscreteProbabilitySamplerFactory
All implementations support the SharedStateDiscreteSampler
interface.
Enum Constant and Description |
---|
ALIAS_METHOD
Sample using the alias method (see
AliasMethodDiscreteSampler ). |
GUIDE_TABLE
Sample using a guide table (see
GuideTableDiscreteSampler ). |
LOOKUP_TABLE
Sample using an optimised look-up table (see
MarsagliaTsangWangDiscreteSampler.Enumerated ). |
Modifier and Type | Method and Description |
---|---|
static CompositeSamplers.DiscreteProbabilitySampler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompositeSamplers.DiscreteProbabilitySampler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
create
public static final CompositeSamplers.DiscreteProbabilitySampler GUIDE_TABLE
GuideTableDiscreteSampler
).public static final CompositeSamplers.DiscreteProbabilitySampler ALIAS_METHOD
AliasMethodDiscreteSampler
).public static final CompositeSamplers.DiscreteProbabilitySampler LOOKUP_TABLE
MarsagliaTsangWangDiscreteSampler.Enumerated
).public static CompositeSamplers.DiscreteProbabilitySampler[] values()
for (CompositeSamplers.DiscreteProbabilitySampler c : CompositeSamplers.DiscreteProbabilitySampler.values()) System.out.println(c);
public static CompositeSamplers.DiscreteProbabilitySampler valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2022 The Apache Software Foundation. All rights reserved.