Package com.bayesserver.inference
Class LikelihoodSamplingInferenceFactory
- java.lang.Object
-
- com.bayesserver.inference.LikelihoodSamplingInferenceFactory
-
- All Implemented Interfaces:
InferenceFactory
public final class LikelihoodSamplingInferenceFactory extends Object implements InferenceFactory
Uses the factory design pattern to create inference related objects for the Likelihood Sampling algorithm. SeeInferenceFactory
for more details.
-
-
Constructor Summary
Constructors Constructor Description LikelihoodSamplingInferenceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Inference
createInferenceEngine(Network network)
Creates an instance of an inference algorithm, with the [network] as it's target.QueryOptions
createQueryOptions()
Creates options that govern how eachquery
is performed.QueryOutput
createQueryOutput()
Creates an object that collects information about eachquery
, in addition to thedistributions
.
-
-
-
Method Detail
-
createInferenceEngine
public Inference createInferenceEngine(Network network)
Creates an instance of an inference algorithm, with the [network] as it's target.- Specified by:
createInferenceEngine
in interfaceInferenceFactory
- Parameters:
network
- The target Bayesian network.- Returns:
- The inference algorithm/engine.
-
createQueryOptions
public QueryOptions createQueryOptions()
Creates options that govern how eachquery
is performed. Each algorithm may provide additional options.- Specified by:
createQueryOptions
in interfaceInferenceFactory
- Returns:
- The options.
-
createQueryOutput
public QueryOutput createQueryOutput()
Creates an object that collects information about eachquery
, in addition to thedistributions
. Each algorithm may provide additional output information.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.
-
-