il2.inf
Enum Algorithm

Object
  extended by Enum<Algorithm>
      extended by Algorithm
All Implemented Interfaces:
Serializable, Comparable<Algorithm>

public enum Algorithm
extends Enum<Algorithm>

Semantically, each "Algorithm" constant represents a distinctive implementation of an inference algorithm. In practice, an "Algorithm" Object is a factory for manufacturing inference engines. Some algorithms support partial derivatives, others do not. Call partials() to get the algorithms that do.

Since:
20081029
Author:
keith cascio

Nested Class Summary
static class Algorithm.EliminationOrderHeuristic
          elimination order heuristic
static class Algorithm.Key
          keys to identify properties of Settings
static class Algorithm.Order2JoinTree
          induce a join tree from an elimination order
static class Algorithm.Query
          kind of query that an inference engine might support
static class Algorithm.Result
          the inference engine itself and other intermediate side-effects
static class Algorithm.Setting
          control inference engine compilation
 
Enum Constant Summary
hugin
          hugin
recursiveconditioning
          recursive conditioning: RCEngine
shenoyshafer
          shenoy-shafer
ssnormalized
          shenoy-shafer -- normalized
ssnormalizedmax
          shenoy-shafer -- normalized
zcnormalized
          "zero-conscious" hugin -- normalized
zeroconscioushugin
          "zero-conscious" hugin
 
Field Summary
 Class<? extends JointEngine> clazz
          engine class
 Flavor flavor
          join tree flavor
 boolean partial
          supports compiling a partial derivative engine ??
 
Method Summary
 Map<Algorithm.Result,Object> compile(BayesianNetwork bn, Map<Algorithm.Setting,?> settings)
          create (i.e.
static Algorithm forClass(Class<? extends JointEngine> clazz)
          if you've got a JointEngine Class but you need an Algorithm
static void main(String[] args)
          test/debug
static EliminationOrders.Record order(BayesianNetwork bn, Map<Algorithm.Setting,?> ss)
          elimination order
static Collection<Algorithm> partials()
          the flavors that support compiling a partial derivative engine
static Algorithm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Algorithm[] 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

recursiveconditioning

public static final Algorithm recursiveconditioning
recursive conditioning: RCEngine


ssnormalized

public static final Algorithm ssnormalized
shenoy-shafer -- normalized


ssnormalizedmax

public static final Algorithm ssnormalizedmax
shenoy-shafer -- normalized


shenoyshafer

public static final Algorithm shenoyshafer
shenoy-shafer


hugin

public static final Algorithm hugin
hugin


zcnormalized

public static final Algorithm zcnormalized
"zero-conscious" hugin -- normalized


zeroconscioushugin

public static final Algorithm zeroconscioushugin
"zero-conscious" hugin

Field Detail

flavor

public final Flavor flavor
join tree flavor


partial

public final boolean partial
supports compiling a partial derivative engine ??


clazz

public final Class<? extends JointEngine> clazz
engine class

Method Detail

values

public static Algorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Algorithm c : Algorithm.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Algorithm valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

partials

public static Collection<Algorithm> partials()
the flavors that support compiling a partial derivative engine


compile

public Map<Algorithm.Result,Object> compile(BayesianNetwork bn,
                                            Map<Algorithm.Setting,?> settings)
create (i.e. compile) a JointEngine


order

public static EliminationOrders.Record order(BayesianNetwork bn,
                                             Map<Algorithm.Setting,?> ss)
elimination order


forClass

public static Algorithm forClass(Class<? extends JointEngine> clazz)
if you've got a JointEngine Class but you need an Algorithm


main

public static void main(String[] args)
test/debug



Copyright 2010 UCLA Automated Reasoning Group