Class MinimumViolationMachineShop
- java.lang.Object
 - 
- net.sf.tweety.logics.pcl.analysis.MinimumViolationMachineShop
 
 
- 
- All Implemented Interfaces:
 BeliefBaseMachineShop
public class MinimumViolationMachineShop extends java.lang.Object implements BeliefBaseMachineShop
Repairs a probabilistic belief base by taking the probabilities from the probability function that minimizes the "minimum violation inconsistency measure".- Author:
 - Matthias Thimm
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private RealVectorNormnormThe norm. 
- 
Constructor Summary
Constructors Constructor Description MinimumViolationMachineShop(RealVectorNorm norm)Creates a new machine shop for the norm 
- 
Method Summary
Modifier and Type Method Description BeliefBaserepair(BeliefBase beliefBase)Repairs the given belief base, i.e. 
 - 
 
- 
- 
Field Detail
- 
norm
private RealVectorNorm norm
The norm. 
 - 
 
- 
Constructor Detail
- 
MinimumViolationMachineShop
public MinimumViolationMachineShop(RealVectorNorm norm)
Creates a new machine shop for the norm- Parameters:
 norm- some norm.
 
 - 
 
- 
Method Detail
- 
repair
public BeliefBase repair(BeliefBase beliefBase)
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.
 
 
 - 
 
 -