Package com.bayesserver.inference
Class LoopyBeliefQueryOutput
- java.lang.Object
-
- com.bayesserver.inference.LoopyBeliefQueryOutput
-
- All Implemented Interfaces:
QueryOutput
public final class LoopyBeliefQueryOutput extends Object implements QueryOutput
Returns any information, in addition to thedistributions, that is requested from aquery. For example thelog-likelihood.
-
-
Constructor Summary
Constructors Constructor Description LoopyBeliefQueryOutput()Initializes a new instance of theLoopyBeliefQueryOutputclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetConflict()Gets the conflict measure.intgetIterations()Gets the number of iterations performed.DoublegetLogLikelihood()Gets the log-likelihood value.voidreset()Resets all values to their defaults.voidsetConflict(Double value)Sets the conflict measure.voidsetLogLikelihood(Double value)Sets the log-likelihood value.
-
-
-
Constructor Detail
-
LoopyBeliefQueryOutput
public LoopyBeliefQueryOutput()
Initializes a new instance of theLoopyBeliefQueryOutputclass.
-
-
Method Detail
-
getIterations
public int getIterations()
Gets the number of iterations performed.
-
getLogLikelihood
public Double getLogLikelihood()
Gets the log-likelihood value. On return from aquerythe value will be null unlessQueryOptions.getLogLikelihood()is set to true.The log-likelihood should only be requested if required.
The natural log (base e) likelihood is returned, or null if not requested.
- Specified by:
getLogLikelihoodin interfaceQueryOutput
-
setLogLikelihood
public void setLogLikelihood(Double value)
Sets the log-likelihood value. On return from aquerythe value will be null unlessQueryOptions.getLogLikelihood()is set to true.The log-likelihood should only be requested if required.
The natural log (base e) likelihood is returned, or null if not requested.
- Specified by:
setLogLikelihoodin interfaceQueryOutput
-
getConflict
public Double getConflict()
Gets the conflict measure. On return from aquerythe value will be null unlessQueryOptions.getConflict()is set to true.The conflict measure should only be requested if required.
- Specified by:
getConflictin interfaceQueryOutput
-
setConflict
public void setConflict(Double value)
Sets the conflict measure. On return from aquerythe value will be null unlessQueryOptions.getConflict()is set to true.The conflict measure should only be requested if required.
- Specified by:
setConflictin interfaceQueryOutput
-
reset
public void reset()
Resets all values to their defaults. For example the log-likelihood is reset to null.- Specified by:
resetin interfaceQueryOutput
-
-