Class McscInconsistencyMeasure<S extends Formula>
- java.lang.Object
-
- net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure<S>
-
- net.sf.tweety.logics.commons.analysis.McscInconsistencyMeasure<S>
-
- Type Parameters:
S- the type of formulas
- All Implemented Interfaces:
PostulateEvaluatable<S>,InconsistencyMeasure<BeliefSet<S,?>>
public class McscInconsistencyMeasure<S extends Formula> extends BeliefSetInconsistencyMeasure<S>
This class implements the approach of [Meriem Ammoura, Badran Raddaoui, Yakoub Salhi, Brahim Oukacha. On Measuring Inconsistency Using Maximal Consistent Sets. ECSQARU'15].
This implementation actually uses a different characterization of the measure proposed in the paper above. Instead of using maximal consistent subsets the implementation uses minimal correction sets (note that there is a 1:1 correspondence between the two).- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private MusEnumerator<S>enumeratorThe MUs enumerator.-
Fields inherited from interface net.sf.tweety.logics.commons.analysis.InconsistencyMeasure
MEASURE_TOLERANCE
-
-
Constructor Summary
Constructors Constructor Description McscInconsistencyMeasure(MusEnumerator<S> enumerator)Creates a new inconsistency measure.
-
Method Summary
Modifier and Type Method Description private java.util.Set<java.util.Set<java.util.Set<S>>>getMdAnticover(java.util.List<java.util.Set<S>> md, int idx, java.util.Set<java.util.Set<java.util.Set<S>>> candidates)Recursively determines sets of minimal correction sets that have an empty intersection (= the complements of maximal consistent sets where the union equals the knowledge base; we call it MD-anticover).java.lang.DoubleinconsistencyMeasure(java.util.Collection<S> formulas)This method measures the inconsistency of the given set of formulas.-
Methods inherited from class net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure
inconsistencyMeasure
-
-
-
-
Field Detail
-
enumerator
private MusEnumerator<S extends Formula> enumerator
The MUs enumerator.
-
-
Constructor Detail
-
McscInconsistencyMeasure
public McscInconsistencyMeasure(MusEnumerator<S> enumerator)
Creates a new inconsistency measure.- Parameters:
enumerator- some MUs enumerator
-
-
Method Detail
-
getMdAnticover
private java.util.Set<java.util.Set<java.util.Set<S>>> getMdAnticover(java.util.List<java.util.Set<S>> md, int idx, java.util.Set<java.util.Set<java.util.Set<S>>> candidates)
Recursively determines sets of minimal correction sets that have an empty intersection (= the complements of maximal consistent sets where the union equals the knowledge base; we call it MD-anticover).- Parameters:
md- a list of all minimal correction setsidx- the current index in the list of minimal correction setscandidates- the set of candidates- Returns:
- the set of all MD anticover
-
inconsistencyMeasure
public java.lang.Double inconsistencyMeasure(java.util.Collection<S> formulas)
Description copied from class:BeliefSetInconsistencyMeasureThis method measures the inconsistency of the given set of formulas.- Specified by:
inconsistencyMeasurein classBeliefSetInconsistencyMeasure<S extends Formula>- Parameters:
formulas- a collection of formulas.- Returns:
- a Double indicating the degree of inconsistency.
-
-