Package com.bayesserver.inference
Class VariableEliminationInferenceFactory
- java.lang.Object
-
- com.bayesserver.inference.VariableEliminationInferenceFactory
-
- All Implemented Interfaces:
InferenceFactory
public final class VariableEliminationInferenceFactory extends Object implements InferenceFactory
Uses the factory design pattern to create inference related objects for the Variable elimination algorithm. SeeInferenceFactoryfor more details.
-
-
Constructor Summary
Constructors Constructor Description VariableEliminationInferenceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InferencecreateInferenceEngine(Network network)Uses the factory design pattern to create inference related objects for the Variable elimination algorithm.QueryOptionscreateQueryOptions()Creates aVariableEliminationQueryOptionsinstance that governs the calculations performed by theVariableEliminationInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)method.QueryOutputcreateQueryOutput()Creates aVariableEliminationQueryOutputinstance that collects information about eachquery, in addition to thedistributions.
-
-
-
Method Detail
-
createInferenceEngine
public Inference createInferenceEngine(Network network)
Uses the factory design pattern to create inference related objects for the Variable elimination algorithm. SeeInferenceFactoryfor more details.- Specified by:
createInferenceEnginein interfaceInferenceFactory- Parameters:
network- The target Bayesian network.- Returns:
- The inference algorithm/engine.
-
createQueryOptions
public QueryOptions createQueryOptions()
Creates aVariableEliminationQueryOptionsinstance that governs the calculations performed by theVariableEliminationInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)method.- Specified by:
createQueryOptionsin interfaceInferenceFactory- Returns:
- The options for use with
VariableEliminationInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).
-
createQueryOutput
public QueryOutput createQueryOutput()
Creates aVariableEliminationQueryOutputinstance that collects information about eachquery, in addition to thedistributions.The output object can be created once, and reused over many calls to
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).- Specified by:
createQueryOutputin interfaceInferenceFactory- Returns:
- The output instance.
-
-