Package net.sf.tweety.logics.pl.analysis
Class DalalDistance
- java.lang.Object
-
- net.sf.tweety.logics.pl.analysis.PossibleWorldDistance
-
- net.sf.tweety.logics.pl.analysis.DalalDistance
-
- All Implemented Interfaces:
InterpretationDistance<PossibleWorld,PlBeliefSet,PlFormula>
public class DalalDistance extends PossibleWorldDistance
This class models the dalal distance measure between possible worlds, see e.g. [Grant, Hunter. Distance-based Measures of Inconsistency, ECSQARU'13]. It returns the number of propositions two possible possible worlds differ.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description DalalDistance()
-
Method Summary
Modifier and Type Method Description double
distance(PossibleWorld a, PossibleWorld b)
Measures the distance between the two given interpretations.-
Methods inherited from class net.sf.tweety.logics.pl.analysis.PossibleWorldDistance
distance
-
-
-
-
Method Detail
-
distance
public double distance(PossibleWorld a, PossibleWorld b)
Description copied from interface:InterpretationDistance
Measures the distance between the two given interpretations.- Specified by:
distance
in interfaceInterpretationDistance<PossibleWorld,PlBeliefSet,PlFormula>
- Specified by:
distance
in classPossibleWorldDistance
- Parameters:
a
- some interpretationb
- some interpretation- Returns:
- the distance between the two given interpretations.
-
-