Class DHitInconsistencyMeasure<T extends net.sf.tweety.commons.Interpretation<B,S>,B extends net.sf.tweety.commons.BeliefBase,S extends net.sf.tweety.commons.Formula>
- java.lang.Object
-
- net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure<S>
-
- net.sf.tweety.logics.commons.analysis.DHitInconsistencyMeasure<T,B,S>
-
- Type Parameters:
T- the type of interpretationsB- the type of belief basesS- The type of formulas supported
- All Implemented Interfaces:
net.sf.tweety.commons.postulates.PostulateEvaluatable<S>,InconsistencyMeasure<net.sf.tweety.commons.BeliefSet<S,?>>
public class DHitInconsistencyMeasure<T extends net.sf.tweety.commons.Interpretation<B,S>,B extends net.sf.tweety.commons.BeliefBase,S extends net.sf.tweety.commons.Formula> extends BeliefSetInconsistencyMeasure<S>
This class implements the d-hit inconsistency measure from [Grant, Hunter. Distance-based Measures of Inconsistency, ECSQARU'13]. This implementation uses a slightly different characterization than the one used in the paper. This measure seeks an interpretation I such that the number of formulas not satisfied by I is minimal. The value of the inconsistency is than exactly this number. The distance can be parameterized.
NOTE: Currently, this algorithm uses a brute force approach (checking all interpretations) for computing the solution.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from interface net.sf.tweety.logics.commons.analysis.InconsistencyMeasure
MEASURE_TOLERANCE
-
-
Constructor Summary
Constructors Constructor Description DHitInconsistencyMeasure(net.sf.tweety.commons.analysis.InterpretationDistance<T,B,S> distance, net.sf.tweety.commons.InterpretationIterator<S,B,T> it)Creates a new d-sum inconsistency measure using the given distance and interpretations provided from the given interpretation iterator.
-
Method Summary
Modifier and Type Method Description DoubleinconsistencyMeasure(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
-
-
-
-
Constructor Detail
-
DHitInconsistencyMeasure
public DHitInconsistencyMeasure(net.sf.tweety.commons.analysis.InterpretationDistance<T,B,S> distance, net.sf.tweety.commons.InterpretationIterator<S,B,T> it)
Creates a new d-sum inconsistency measure using the given distance and interpretations provided from the given interpretation iterator.- Parameters:
distance- some distance measureit- some interpretation iterator
-
-
Method Detail
-
inconsistencyMeasure
public Double inconsistencyMeasure(Collection<S> formulas)
Description copied from class:BeliefSetInconsistencyMeasureThis method measures the inconsistency of the given set of formulas.- Specified by:
inconsistencyMeasurein classBeliefSetInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>- Parameters:
formulas- a collection of formulas.- Returns:
- a Double indicating the degree of inconsistency.
-
-