Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int p
      The p-norm parameter.
    • Method Summary

      Modifier and Type Method Description
      BeliefBase repair​(BeliefBase beliefBase)
      Repairs the given belief base, i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • p

        private int p
        The p-norm parameter.
    • Constructor Detail

      • 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 interface BeliefBaseMachineShop
        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.