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. SeeInferenceFactory
for more details.
-
-
Constructor Summary
Constructors Constructor Description RelevanceTreeInferenceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Inference
createInferenceEngine(Network network)
Uses the factory design pattern to create inference related objects for the Relevance Tree algorithm.QueryOptions
createQueryOptions()
Creates aRelevanceTreeQueryOptions
instance that governs the calculations performed by theRelevanceTreeInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
method.QueryOutput
createQueryOutput()
Creates aRelevanceTreeQueryOutput
instance 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. SeeInferenceFactory
for more details.- Specified by:
createInferenceEngine
in interfaceInferenceFactory
- Parameters:
network
- The target Bayesian network.- Returns:
- The inference algorithm/engine.
-
createQueryOptions
public QueryOptions createQueryOptions()
Creates aRelevanceTreeQueryOptions
instance that governs the calculations performed by theRelevanceTreeInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
method.- Specified by:
createQueryOptions
in interfaceInferenceFactory
- Returns:
- The options for use with
RelevanceTreeInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
.
-
createQueryOutput
public QueryOutput createQueryOutput()
Creates aRelevanceTreeQueryOutput
instance 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:
createQueryOutput
in interfaceInferenceFactory
- Returns:
- The output instance.
-
-