Class PossibleWorldDistance
java.lang.Object
org.tweetyproject.logics.pl.analysis.PossibleWorldDistance
- All Implemented Interfaces:
InterpretationDistance<PossibleWorld,PlBeliefSet,PlFormula>
- Direct Known Subclasses:
DalalDistance
public abstract class PossibleWorldDistance
extends Object
implements InterpretationDistance<PossibleWorld,PlBeliefSet,PlFormula>
This class refines interpretation distances to distance on possible worlds. It add
some functionalities to measure distance of formulas to possible worlds.
- Author:
- Matthias Thimm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doubledistance(PossibleWorld a, PossibleWorld b)Measures the distance between the two given interpretations.doubledistance(PlFormula f, PossibleWorld b)Measures the distance between a formula and some interpretation by taking the minimal distance from all models of the formula to the given interpretation.
-
Constructor Details
-
PossibleWorldDistance
public PossibleWorldDistance()
-
-
Method Details
-
distance
Description copied from interface:InterpretationDistanceMeasures the distance between the two given interpretations.- Specified by:
distancein interfaceInterpretationDistance<PossibleWorld,PlBeliefSet,PlFormula>- Parameters:
a- some interpretationb- some interpretation- Returns:
- the distance between the two given interpretations.
-
distance
Description copied from interface:InterpretationDistanceMeasures the distance between a formula and some interpretation by taking the minimal distance from all models of the formula to the given interpretation.- Specified by:
distancein interfaceInterpretationDistance<PossibleWorld,PlBeliefSet,PlFormula>- Parameters:
f- some formulab- some interpretation.- Returns:
- the distance between the set of models of the formula to the given interpretation.
-