public abstract class AbstractCreepingMachineShop extends java.lang.Object implements BeliefBaseMachineShop
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log
Logger.
|
static int |
MAX_ITERATIONS
The maximum number of steps in the line search.
|
static double |
PRECISION
The precision for finding the minimal consistent knowledge base.
|
Constructor and Description |
---|
AbstractCreepingMachineShop() |
Modifier and Type | Method and Description |
---|---|
protected PclBeliefSet |
characteristicFunction(PclBeliefSet beliefSet,
java.util.Map<ProbabilisticConditional,Probability> values)
Returns a modified belief base that replaces each conditionals probability
by the one given by "values".
|
protected abstract double |
getLowerBound()
Retrieves the lower bound for delta for this machine shop.
|
protected abstract double |
getUpperBound()
Retrieves the upper bound for delta for this machine shop.
|
protected abstract java.util.Map<ProbabilisticConditional,Probability> |
getValues(double delta,
PclBeliefSet beliefSet)
Computes the values of the conditionals for step delta
|
protected void |
init(PclBeliefSet beliefSet)
Performs some optional initializations before beginning
to restore consistency.
|
BeliefBase |
repair(BeliefBase beliefBase)
Repairs the given belief base, i.e.
|
private static org.slf4j.Logger log
public static final double PRECISION
public static final int MAX_ITERATIONS
public BeliefBase repair(BeliefBase beliefBase)
BeliefBaseMachineShop
repair
in interface BeliefBaseMachineShop
beliefBase
- a possibly inconsistent belief base.protected void init(PclBeliefSet beliefSet)
beliefSet
- a PCL belief set.protected PclBeliefSet characteristicFunction(PclBeliefSet beliefSet, java.util.Map<ProbabilisticConditional,Probability> values)
beliefSet
- a belief setvalues
- a map from conditionals to probabilities.protected abstract java.util.Map<ProbabilisticConditional,Probability> getValues(double delta, PclBeliefSet beliefSet)
delta
- the step parameter.beliefSet
- the belief set.protected abstract double getLowerBound()
protected abstract double getUpperBound()