Initializes a new instance of the {@link com.bayesserver.inference.QueryDistribution} class. The enabled property defaults to true.
The distribution to query.
Initializes a new instance of the {@link com.bayesserver.inference.QueryDistribution} class.
The distribution to query.
Sets the {@link com.bayesserver.inference.QueryDistribution#getIsEnabled} property.
Gets a value indicating whether queried values should be adjusted to show how they compare to the same query with no evidence, or base evidence.
Using comparisons is useful when you want to measure the difference or lift of a prediction value, for example when spotting unusual patterns during data exploration, or making recommendations.
The comparison can be calculated based on no evidence, or against base evidence which can be set on {@link com.bayesserver.inference.IInference#getBaseEvidence}.
Sets a value indicating whether queried values should be adjusted to show how they compare to the same query with no evidence, or base evidence.
Using comparisons is useful when you want to measure the difference or lift of a prediction value, for example when spotting unusual patterns during data exploration, or making recommendations.
The comparison can be calculated based on no evidence, or against base evidence which can be set on {@link com.bayesserver.inference.IInference#getBaseEvidence}.
The distance between this query calculated with base evidence or no evidence, and when calculated with evidence. Only calculated when {@link com.bayesserver.inference.QueryDistribution#getQueryDistance} is not None.
This value can be null when the QueryDistance is set to None or the distance is undefined for the given queries.
The distance between this query calculated with base evidence or no evidence, and when calculated with evidence. Only calculated when {@link com.bayesserver.inference.QueryDistribution#getQueryDistance} is not None.
This value can be null when the QueryDistance is set to None or the distance is undefined for the given queries.
Gets the distribution to query.
The distribution.
Gets a value indicating whether the distribution should be queried.
true
if the distribution should be queried; otherwise, false
.
Sets a value indicating whether the distribution should be queried.
true
if the distribution should be queried; otherwise, false
.
true
if the distribution should be queried; otherwise, false
.
The log-likelihood specific to the evidence used to calculate this query. Only calculated when {@link com.bayesserver.inference.QueryDistribution#getQueryLogLikelihood} is true
.
The log-likelihood value will equal the overall {@link com.bayesserver.inference.IQueryOutput#getLogLikelihood} unless{@link com.bayesserver.inference.IQueryOptions#getQueryEvidenceMode} is set to {@link com.bayesserver.inference.QueryEvidenceMode#RetractQueryEvidence}, and there is evidence on at least one variable in the {@link com.bayesserver.IDistribution}.
When evidence is retracted for a particular query, this value contains the log likelihood of the remaining evidence.
The log-likelihood specific to the evidence used to calculate this query. Only calculated when {@link com.bayesserver.inference.QueryDistribution#getQueryLogLikelihood} is true
.
The log-likelihood value will equal the overall {@link com.bayesserver.inference.IQueryOutput#getLogLikelihood} unless{@link com.bayesserver.inference.IQueryOptions#getQueryEvidenceMode} is set to {@link com.bayesserver.inference.QueryEvidenceMode#RetractQueryEvidence}, and there is evidence on at least one variable in the {@link com.bayesserver.IDistribution}.
When evidence is retracted for a particular query, this value contains the log likelihood of the remaining evidence.
Gets a value indicating whether the distance should be calculated between the query calculated with base evidence (or no evidence), and the same query calculated with evidence.
The distance can be calculated against no evidence, or against base evidence which can be set on {@link com.bayesserver.inference.IInference#getBaseEvidence}.
Sets a value indicating whether the distance should be calculated between the query calculated with base evidence (or no evidence), and the same query calculated with evidence.
The distance can be calculated against no evidence, or against base evidence which can be set on {@link com.bayesserver.inference.IInference#getBaseEvidence}.
Determines whether or not to calculate the {@link com.bayesserver.inference.QueryDistribution#getLogLikelihood} specific to the evidence used to calculate this query. For more information see {@link com.bayesserver.inference.QueryDistribution#getLogLikelihood}.
Determines whether or not to calculate the {@link com.bayesserver.inference.QueryDistribution#getLogLikelihood} specific to the evidence used to calculate this query. For more information see {@link com.bayesserver.inference.QueryDistribution#getLogLikelihood}.
Returns a {@link String} that represents this instance.
A {@link String} that represents this instance.
Defines a distribution to be queried in a call to {@link com.bayesserver.inference.IInference#query}.