Class DistanceMinimizationMachineShop
- java.lang.Object
-
- net.sf.tweety.logics.pcl.analysis.DistanceMinimizationMachineShop
-
- All Implemented Interfaces:
BeliefBaseMachineShop
public class DistanceMinimizationMachineShop extends java.lang.Object implements BeliefBaseMachineShop
This consistency restorer uses the distance minimization inconsistency measure to restore consistency.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description DistanceMinimizationMachineShop()
Creates a new restorer for p=1.DistanceMinimizationMachineShop(int p)
Creates a new restorer for the given p.DistanceMinimizationMachineShop(OptimizationRootFinder rootFinder)
-
Method Summary
Modifier and Type Method Description BeliefBase
repair(BeliefBase beliefBase)
Repairs the given belief base, i.e.
-
-
-
Constructor Detail
-
DistanceMinimizationMachineShop
public DistanceMinimizationMachineShop(OptimizationRootFinder rootFinder)
-
DistanceMinimizationMachineShop
public DistanceMinimizationMachineShop()
Creates a new restorer for p=1.
-
DistanceMinimizationMachineShop
public DistanceMinimizationMachineShop(int p)
Creates a new restorer for the given p.- Parameters:
p
- some parameter for the p-norm.
-
-
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.
-
-