Package com.bayesserver.inference
Class LikelihoodSamplingQueryOutput
- java.lang.Object
-
- com.bayesserver.inference.LikelihoodSamplingQueryOutput
-
- All Implemented Interfaces:
QueryOutput
public final class LikelihoodSamplingQueryOutput 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 LikelihoodSamplingQueryOutput()
Initializes a new instance of theLikelihoodSamplingQueryOutput
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getConflict()
Gets the conflict measure.Double
getLogLikelihood()
Gets the log-likelihood value.int
getSeed()
Gets the seed used by the random number generator.void
reset()
Resets all values to their defaults.void
setConflict(Double value)
Sets the conflict measure.void
setLogLikelihood(Double value)
Sets the log-likelihood value.void
setSeed(int value)
Sets the seed used by the random number generator.
-
-
-
Constructor Detail
-
LikelihoodSamplingQueryOutput
public LikelihoodSamplingQueryOutput()
Initializes a new instance of theLikelihoodSamplingQueryOutput
class.
-
-
Method Detail
-
getSeed
public int getSeed()
Gets the seed used by the random number generator.
-
setSeed
public void setSeed(int value)
Sets the seed used by the random number generator.
-
getLogLikelihood
public Double getLogLikelihood()
Gets the log-likelihood value. On return from aquery
the 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:
getLogLikelihood
in interfaceQueryOutput
-
setLogLikelihood
public void setLogLikelihood(Double value)
Sets the log-likelihood value. On return from aquery
the 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:
setLogLikelihood
in interfaceQueryOutput
-
getConflict
public Double getConflict()
Gets the conflict measure. On return from aquery
the value will be null unlessQueryOptions.getConflict()
is set to true.The conflict measure should only be requested if required.
- Specified by:
getConflict
in interfaceQueryOutput
-
setConflict
public void setConflict(Double value)
Sets the conflict measure. On return from aquery
the value will be null unlessQueryOptions.getConflict()
is set to true.The conflict measure should only be requested if required.
- Specified by:
setConflict
in interfaceQueryOutput
-
reset
public void reset()
Resets all values to their defaults. For example the log-likelihood is reset to null.- Specified by:
reset
in interfaceQueryOutput
-
-