Class BalancedMachineShop
java.lang.Object
org.tweetyproject.logics.pcl.analysis.BalancedMachineShop
- All Implemented Interfaces:
BeliefBaseMachineShop
This class implements a consistency restorer using balanced distance minimization, see [Diss, Thimm] for details.
- Author:
- Matthias Thimm
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The precision for comparing culpability values.static final double
The precision for comparing culpability values. -
Constructor Summary
ConstructorDescriptionBalancedMachineShop
(CulpabilityMeasure<ProbabilisticConditional, PclBeliefSet> culpabilityMeasure) ConstructorBalancedMachineShop
(OptimizationRootFinder rootFinder) Constructor -
Method Summary
Modifier and TypeMethodDescriptionrepair
(BeliefBase beliefBase) Repairs the given belief base, i.e.
-
Field Details
-
PRECISIONCULP
public static final double PRECISIONCULPThe precision for comparing culpability values.- See Also:
-
PRECISIONOPT
public static final double PRECISIONOPTThe precision for comparing culpability values.- See Also:
-
-
Constructor Details
-
BalancedMachineShop
Constructor- Parameters:
rootFinder
- the rrot finder
-
BalancedMachineShop
public BalancedMachineShop(CulpabilityMeasure<ProbabilisticConditional, PclBeliefSet> culpabilityMeasure) Constructor- Parameters:
culpabilityMeasure
- the culpabilityMeasure
-
-
Method Details
-
repair
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.
-