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
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
Measures the distance between the two given interpretations.double
distance
(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()Default Constructor
-
-
Method Details
-
distance
Description copied from interface:InterpretationDistance
Measures the distance between the two given interpretations.- Specified by:
distance
in interfaceInterpretationDistance<PossibleWorld,
PlBeliefSet, PlFormula> - Parameters:
a
- some interpretationb
- some interpretation- Returns:
- the distance between the two given interpretations.
-
distance
Description copied from interface:InterpretationDistance
Measures 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:
distance
in 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.
-