Class BalancedMachineShop
- java.lang.Object
-
- net.sf.tweety.logics.pcl.analysis.BalancedMachineShop
-
- All Implemented Interfaces:
BeliefBaseMachineShop
public class BalancedMachineShop extends java.lang.Object implements BeliefBaseMachineShop
This class implements a consistency restorer using balanced distance minimization, see [Diss, Thimm] for details.- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description static double
PRECISIONCULP
The precision for comparing culpability values.static double
PRECISIONOPT
The precision for comparing culpability values.
-
Constructor Summary
Constructors Constructor Description BalancedMachineShop(CulpabilityMeasure<ProbabilisticConditional,PclBeliefSet> culpabilityMeasure)
BalancedMachineShop(OptimizationRootFinder rootFinder)
-
Method Summary
Modifier and Type Method Description BeliefBase
repair(BeliefBase beliefBase)
Repairs the given belief base, i.e.
-
-
-
Field Detail
-
PRECISIONCULP
public static final double PRECISIONCULP
The precision for comparing culpability values.- See Also:
- Constant Field Values
-
PRECISIONOPT
public static final double PRECISIONOPT
The precision for comparing culpability values.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BalancedMachineShop
public BalancedMachineShop(OptimizationRootFinder rootFinder)
-
BalancedMachineShop
public BalancedMachineShop(CulpabilityMeasure<ProbabilisticConditional,PclBeliefSet> culpabilityMeasure)
-
-
Method Detail
-
repair
public BeliefBase repair(BeliefBase beliefBase)
Description copied from interface:BeliefBaseMachineShop
Repairs the given belief base, i.e. restores consistency.- Specified by:
repair
in interfaceBeliefBaseMachineShop
- Parameters:
beliefBase
- a possibly inconsistent belief base.- Returns:
- a consistent belief base that is as close as possible to the given belief base. NOTE: if the given belief base is consistent this method is expected to return it unmodified.
-
-