Class DistanceMinimizationMachineShop
java.lang.Object
org.tweetyproject.logics.pcl.analysis.DistanceMinimizationMachineShop
- All Implemented Interfaces:
 BeliefBaseMachineShop
This consistency restorer uses the distance minimization inconsistency measure
 to restore consistency.
- Author:
 - Matthias Thimm
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new restorer for p=1.Creates a new restorer for the given p. - 
Method Summary
Modifier and TypeMethodDescriptionrepair(BeliefBase beliefBase) Repairs the given belief base, i.e. 
- 
Constructor Details
- 
DistanceMinimizationMachineShop
 - 
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 Details
- 
repair
Description copied from interface:BeliefBaseMachineShopRepairs the given belief base, i.e. restores consistency.- Specified by:
 repairin 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.
 
 
 -