|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
ObjectEnum<Flavor>
Flavor
public enum Flavor
Join tree algorithm
"flavor", ie distinctive implementation.
Some flavors support partial derivatives
, others do not.
Call partials()
to get the flavors that do.
Enum Constant Summary | |
---|---|
hugin
hugin, UnindexedHuginAlgorithm |
|
shenoyshafer
shenoy-shafer, UnindexedSSAlgorithm |
|
ssnormalized
shenoy-shafer -- normalized, NormalizedSSAlgorithm |
|
ssnormalizedmax
shenoy-shafer -- normalized, max-product, NormalizedMaxSSAlgorithm |
|
zcnormalized
"zero-conscious" hugin -- normalized, NormalizedZCAlgorithm |
|
zeroconscioushugin
"zero-conscious" hugin, UnindexedZCAlgorithm |
Field Summary | |
---|---|
Class<? extends JoinTreeAlgorithm> |
clazz
the implementation class |
Method |
method
the implementation class's factory method |
boolean |
normalized
computes the log of answers to avoid underflow |
boolean |
partial
supports compiling a partial derivative engine ?? |
Method Summary | ||
---|---|---|
JoinTreeAlgorithm |
compile(BayesianNetwork bn,
EliminationOrders.JT jt)
compile a JoinTreeAlgorithm JointEngine |
|
static JoinTreeAlgorithm |
forClass(Class<? extends JoinTreeAlgorithm> clazz,
BayesianNetwork bn,
EliminationOrders.JT jt)
convenience factory method |
|
static Method |
linearSearch(Class<? extends JoinTreeAlgorithm> clazz)
find the factory method for a particular class using linear search |
|
static void |
main(String[] args)
test/debug |
|
static Method |
methodForClass(Class<? extends JoinTreeAlgorithm> clazz)
find the factory method for a particular class, first using reflection, then linear search |
|
static Method |
methodForClassSafe(Class<? extends JoinTreeAlgorithm> clazz)
find the factory method for a particular class, but don't throw any exceptions if not found |
|
static int |
MODIFIERS()
modifiers of factory methods |
|
static Collection<Flavor> |
normalized()
the flavors that compute the log of answers to avoid underflow |
|
static Class<?>[] |
PARAMETER_TYPES()
parameter types of factory methods |
|
PartialDerivativeEngine |
partial(BayesianNetwork bn,
EliminationOrders.JT jt)
compile a partial derivative engine , if supported |
|
static Collection<Flavor> |
partials()
the flavors that support compiling a partial derivative engine |
|
static Class<JoinTreeAlgorithm> |
RETURN_TYPE()
return type of factory methods |
|
static
|
shallowestContiguousConcreteDeclarer(Class<T> child,
String signature,
Class<?>... parameterTypes)
Beginning with child, considers the ancestry of child up to the first abstract ancestor. |
|
static String |
STR_NAME_METHOD_NORMALIZED()
|
|
static String |
STR_NAME_METHOD()
name factory methods |
|
static Flavor |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
|
static Flavor[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Flavor ssnormalized
NormalizedSSAlgorithm
public static final Flavor ssnormalizedmax
NormalizedMaxSSAlgorithm
public static final Flavor shenoyshafer
UnindexedSSAlgorithm
public static final Flavor hugin
UnindexedHuginAlgorithm
public static final Flavor zcnormalized
NormalizedZCAlgorithm
public static final Flavor zeroconscioushugin
UnindexedZCAlgorithm
Field Detail |
---|
public final Class<? extends JoinTreeAlgorithm> clazz
public final Method method
public final boolean partial
compiling
a partial derivative engine
??
public final boolean normalized
Method Detail |
---|
public static Flavor[] values()
for (Flavor c : Flavor.values()) System.out.println(c);
public static Flavor valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Collection<Flavor> partials()
compiling
a partial derivative engine
public static Collection<Flavor> normalized()
public PartialDerivativeEngine partial(BayesianNetwork bn, EliminationOrders.JT jt)
partial derivative engine
, if supported
public JoinTreeAlgorithm compile(BayesianNetwork bn, EliminationOrders.JT jt)
JoinTreeAlgorithm
JointEngine
public static final String STR_NAME_METHOD_NORMALIZED()
public static final String STR_NAME_METHOD()
public static final Class<?>[] PARAMETER_TYPES()
public static final Class<JoinTreeAlgorithm> RETURN_TYPE()
public static final int MODIFIERS()
public static Method methodForClassSafe(Class<? extends JoinTreeAlgorithm> clazz)
public static Method linearSearch(Class<? extends JoinTreeAlgorithm> clazz) throws NoSuchMethodException
NoSuchMethodException
public static Method methodForClass(Class<? extends JoinTreeAlgorithm> clazz) throws NoSuchMethodException
NoSuchMethodException
public static JoinTreeAlgorithm forClass(Class<? extends JoinTreeAlgorithm> clazz, BayesianNetwork bn, EliminationOrders.JT jt) throws NoSuchMethodException
NoSuchMethodException
public static <T> Class<? super T> shallowestContiguousConcreteDeclarer(Class<T> child, String signature, Class<?>... parameterTypes)
public static void main(String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |