Class FuzzyInconsistencyMeasure

  • All Implemented Interfaces:
    net.sf.tweety.commons.postulates.PostulateEvaluatable<PlFormula>, net.sf.tweety.logics.commons.analysis.InconsistencyMeasure<net.sf.tweety.commons.BeliefSet<PlFormula,​?>>

    public class FuzzyInconsistencyMeasure
    extends net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure<PlFormula>
    This measure implements the approach presented in [Thimm, Measuring Inconsistency with Many-Valued Logics. 2017.]
    Author:
    Matthias Thimm
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte SUMFUZZY_MEASURE
      static constant for the Sum-version of the measure
      static byte TFUZZY_MEASURE
      static constant for the T-version of the measure
      • Fields inherited from interface net.sf.tweety.logics.commons.analysis.InconsistencyMeasure

        MEASURE_TOLERANCE
    • Constructor Summary

      Constructors 
      Constructor Description
      FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm)
      Creates a new measure for the given T-norm.
      FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm, byte measure_version)
      Creates a new measure for the given T-norm.
      FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm, net.sf.tweety.math.func.fuzzy.TCoNorm tconorm)
      Creates a new measure (T Version) for the given T-norm and T-conorm.
      FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm, net.sf.tweety.math.func.fuzzy.TCoNorm tconorm, byte measure_version)
      Creates a new measure for the given T-norm and T-conorm.
    • Field Detail

      • TFUZZY_MEASURE

        public static final byte TFUZZY_MEASURE
        static constant for the T-version of the measure
        See Also:
        Constant Field Values
      • SUMFUZZY_MEASURE

        public static final byte SUMFUZZY_MEASURE
        static constant for the Sum-version of the measure
        See Also:
        Constant Field Values
    • Constructor Detail

      • FuzzyInconsistencyMeasure

        public FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm,
                                         net.sf.tweety.math.func.fuzzy.TCoNorm tconorm,
                                         byte measure_version)
        Creates a new measure for the given T-norm and T-conorm.
        Parameters:
        tnorm - some T-norm
        tconorm - some T-conorm
        measure_version - one of TFUZZY_MEASURE, SUMFUZZY_MEASURE
      • FuzzyInconsistencyMeasure

        public FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm,
                                         net.sf.tweety.math.func.fuzzy.TCoNorm tconorm)
        Creates a new measure (T Version) for the given T-norm and T-conorm.
        Parameters:
        tnorm - some T-norm
        tconorm - some T-conorm
      • FuzzyInconsistencyMeasure

        public FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm)
        Creates a new measure for the given T-norm. Its dual is used as t-conorm.
        Parameters:
        tnorm - some T-norm
      • FuzzyInconsistencyMeasure

        public FuzzyInconsistencyMeasure​(net.sf.tweety.math.func.fuzzy.TNorm tnorm,
                                         byte measure_version)
        Creates a new measure for the given T-norm. Its dual is used as t-conorm.
        Parameters:
        tnorm - some T-norm
        measure_version - one of TFUZZY_MEASURE, SUMFUZZY_MEASURE
    • Method Detail

      • getOptimalInterpretation

        public FuzzyInterpretation getOptimalInterpretation​(Collection<PlFormula> formulas)
        Returns an optimal interpretation as a witness for the inconsistency value.
        Parameters:
        formulas - a set of formulas
        Returns:
        an optimal interpretation as a witness for the inconsistency value.
      • inconsistencyMeasure

        public Double inconsistencyMeasure​(Collection<PlFormula> formulas)
        Specified by:
        inconsistencyMeasure in class net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure<PlFormula>