Package com.bayesserver.inference
Class SoftEvidence
- java.lang.Object
-
- com.bayesserver.inference.SoftEvidence
-
public final class SoftEvidence extends Object
Helper methods for manipulating soft/virtual evidence.Evidence.setStates(Variable, double[])
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Table
divideByPrior(Table target, Table prior)
Divides target soft evidence by an existing prior distribution or query.
-
-
-
Method Detail
-
divideByPrior
public static Table divideByPrior(Table target, Table prior)
Divides target soft evidence by an existing prior distribution or query. This is often used so that when the soft evidence is applied during inference, it cancels out the prior or query.- Parameters:
target
-prior
-- Returns:
- The adjusted distribution.
-
-