Class PossibilityDistribution
java.lang.Object
org.tweetyproject.logics.translators.adfpossibilistic.PossibilityDistribution
Models a possibility distribution (PD) as defined in
Christoph Beierle / Gabriele Kern-Isberner: Methoden Wissensbasierter Systeme
- Author:
- Jonas Schumacher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
lower boundstatic final double
upper bound -
Constructor Summary
ConstructorDescriptionPossibilityDistribution
(PlSignature signature) Creates a new possibility distribution (PD) mapping each given interpretation to 1.0 (least specific value = maximal entropy). -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether this PD is at least as specific as another PD "other"boolean
getNecessity
(PlFormula formula) Gets the necessity measure of the given formula.Returns all interpretations that are mapped to 1Gets the possibility of the given possible world.getPossibility
(PlFormula formula) Gets the possibility measure of the given formula.Returns all interpretations that are mapped to a possibility unequal to zero.Returns the signature of the first-order language this PD is defined on.boolean
Check whether this PD is normalized, i.e.void
setPossibility
(PossibleWorld w, Double value) Sets the possibility for the given possible world.toString()
-
Field Details
-
LOWER_BOUND
public static final double LOWER_BOUNDlower bound- See Also:
-
UPPER_BOUND
public static final double UPPER_BOUNDupper bound- See Also:
-
-
Constructor Details
-
PossibilityDistribution
Creates a new possibility distribution (PD) mapping each given interpretation to 1.0 (least specific value = maximal entropy).- Parameters:
signature
- the signature of the language this PD is defined on.
-
-
Method Details
-
getPossibility
Gets the possibility of the given possible world.- Parameters:
w
- an possible world.- Returns:
- the possibility of the given possible world.
- Throws:
IllegalArgumentException
- if the given possible world has no possibility in this PD.
-
setPossibility
Sets the possibility for the given possible world.- Parameters:
w
- an possible world.value
- the possibility for the possible world.
-
getPossibility
Gets the possibility measure of the given formula. Throws an IllegalArgumentException when the language of the formula does not correspond to the language of the interpretations this PD is defined on. Otherwise the possibility of a formula is defined as the maximal possibility of its satisfying interpretations.- Parameters:
formula
- a formula.- Returns:
- the possibility of the given formula.
- Throws:
IllegalArgumentException
- if the languages of the formula does not correspond to the language of the interpretations this PD is defined on.
-
getNecessity
Gets the necessity measure of the given formula.- Parameters:
formula
- a formula.- Returns:
- the necessity of the given formula.
- Throws:
IllegalArgumentException
- if the languages of the formula does not correspond to the language of the interpretations this PD is defined on.
-
isNormalized
public boolean isNormalized()Check whether this PD is normalized, i.e. whether its max. possibility value equals one.- Returns:
- "true" if this PD is normalized
-
getPossibleWorlds
Returns all interpretations that are mapped to a possibility unequal to zero.- Returns:
- all interpretations that are mapped to a possibility unequal to zero.
-
getPlausibleWorlds
Returns all interpretations that are mapped to 1- Returns:
- all interpretations that are mapped to 1
-
getSignature
Returns the signature of the first-order language this PD is defined on.- Returns:
- the signature of the first-order language this PD is defined on.
-
atLeastAsSpecificAs
Check whether this PD is at least as specific as another PD "other"- Parameters:
other
- : another PD to be compared with- Returns:
- true, if this PD is at least as specific as the other PD
-
toString
-
equals
-