public final class VariableEliminationInferenceFactory extends Object implements InferenceFactory
InferenceFactory for more details.| Constructor and Description |
|---|
VariableEliminationInferenceFactory() |
| Modifier and Type | Method and Description |
|---|---|
Inference |
createInferenceEngine(Network network)
Uses the factory design pattern to create inference related objects for the Variable elimination algorithm.
|
QueryOptions |
createQueryOptions()
Creates a
VariableEliminationQueryOptions instance that governs the calculations performed by the VariableEliminationInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput) method. |
QueryOutput |
createQueryOutput()
Creates a
VariableEliminationQueryOutput instance that collects information about each query, in addition to the distributions. |
public Inference createInferenceEngine(Network network)
InferenceFactory for more details.createInferenceEngine in interface InferenceFactorynetwork - The target Bayesian network.public QueryOptions createQueryOptions()
VariableEliminationQueryOptions instance that governs the calculations performed by the VariableEliminationInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput) method.createQueryOptions in interface InferenceFactoryVariableEliminationInference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).public QueryOutput createQueryOutput()
VariableEliminationQueryOutput instance that collects information about each query, in addition to the distributions.
The output object can be created once, and reused over many calls to Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput).
createQueryOutput in interface InferenceFactoryCopyright © 2021. All rights reserved.