Package com.bayesserver.inference
Interface QueryOutput
-
- All Known Subinterfaces:
CausalQueryOutput
- All Known Implementing Classes:
BackdoorQueryOutput,CausalQueryOutputBase,DisjunctiveCauseQueryOutput,FrontDoorQueryOutput,LikelihoodSamplingQueryOutput,LoopyBeliefQueryOutput,RelevanceTreeQueryOutput,VariableEliminationQueryOutput
public interface QueryOutputReturns any information, in addition to thedistributions, that is requested from aquery. For example thelog-likelihood.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoublegetConflict()Gets the conflict measure.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.
-
-
-
Method Detail
-
getLogLikelihood
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.
-
setLogLikelihood
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.
-
getConflict
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.
-
setConflict
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.
-
reset
void reset()
Resets all values to their defaults. For example the log-likelihood is reset to null.
-
-