Package com.bayesserver.inference
Class RelevanceTreeInferenceFactory
- java.lang.Object
-
- com.bayesserver.inference.RelevanceTreeInferenceFactory
-
- All Implemented Interfaces:
InferenceFactory
public final class RelevanceTreeInferenceFactory extends Object implements InferenceFactory
Uses the factory design pattern to create inference related objects for the Relevance Tree algorithm. SeeInferenceFactoryfor more details.
-
-
Constructor Summary
Constructors Constructor Description RelevanceTreeInferenceFactory()
-
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 Relevance Tree algorithm.QueryOptionscreateQueryOptions()Creates aRelevanceTreeQueryOptionsinstance that governs the calculations performed by theRelevanceTreeInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)method.QueryOutputcreateQueryOutput()Creates aRelevanceTreeQueryOutputinstance 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 Relevance Tree algorithm. SeeInferenceFactoryfor more details.- Specified by:
createInferenceEnginein interfaceInferenceFactory- Parameters:
network- The target Bayesian network.- Returns:
- The inference algorithm/engine.
-
createQueryOptions
public QueryOptions createQueryOptions()
Creates aRelevanceTreeQueryOptionsinstance that governs the calculations performed by theRelevanceTreeInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)method.- Specified by:
createQueryOptionsin interfaceInferenceFactory- Returns:
- The options for use with
RelevanceTreeInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).
-
createQueryOutput
public QueryOutput createQueryOutput()
Creates aRelevanceTreeQueryOutputinstance 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.
-
-