Class CondensedProbabilityDistribution
java.lang.Object
org.tweetyproject.commons.AbstractInterpretation<RpclBeliefSet,RelationalProbabilisticConditional>
org.tweetyproject.logics.rpcl.semantics.RpclProbabilityDistribution<ReferenceWorld>
org.tweetyproject.logics.rpcl.semantics.CondensedProbabilityDistribution
- All Implemented Interfaces:
Map<ReferenceWorld,
,Probability> Interpretation<RpclBeliefSet,
RelationalProbabilisticConditional>
Instances of this class represent condensed probability distributions, rf. [PhD thesis, Thimm].
- Author:
- Matthias Thimm
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCondensedProbabilityDistribution
(RpclSemantics semantics, FolSignature signature) Creates a new condensed probability distribution for the given signature. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the condensed entropy of this distribution (neglecting multiplicators of reference worlds.double
entropy()
Returns the entropy of this probability distribution.getRandomDistribution
(RpclSemantics semantics, FolSignature signature, Set<Set<Constant>> equivalenceClasses) Returns a random distribution on the given signature.getUniformDistribution
(RpclSemantics semantics, FolSignature signature, Set<Set<Constant>> equivalenceClasses) Returns the uniform distribution on the given signature.Gets the probability of the given closed formula, i.e.boolean
Checks whether this interpretation satisfies the given formula.boolean
satisfies
(RpclBeliefSet beliefBase) Checks whether this interpretation satisfies the given knowledge base.Converts this condensed probability distribution into an ordinary probability distribution.Methods inherited from class org.tweetyproject.logics.rpcl.semantics.RpclProbabilityDistribution
clear, containsKey, containsValue, convexCombination, entrySet, get, getSemantics, getSignature, getUniformDistribution, isEmpty, keySet, probability, put, putAll, remove, size, toString, values
Methods inherited from class org.tweetyproject.commons.AbstractInterpretation
satisfies
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CondensedProbabilityDistribution
Creates a new condensed probability distribution for the given signature.- Parameters:
semantics
- the semantics used for this distribution.signature
- a fol signature.
-
-
Method Details
-
satisfies
public boolean satisfies(RelationalProbabilisticConditional formula) throws IllegalArgumentException Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given formula.- Specified by:
satisfies
in interfaceInterpretation<RpclBeliefSet,
RelationalProbabilisticConditional> - Overrides:
satisfies
in classRpclProbabilityDistribution<ReferenceWorld>
- Parameters:
formula
- a formula .- Returns:
- "true" if this interpretation satisfies the given formula.
- Throws:
IllegalArgumentException
- if the formula does not correspond to the expected language.
-
satisfies
Description copied from interface:Interpretation
Checks whether this interpretation satisfies the given knowledge base.- Specified by:
satisfies
in interfaceInterpretation<RpclBeliefSet,
RelationalProbabilisticConditional> - Overrides:
satisfies
in classRpclProbabilityDistribution<ReferenceWorld>
- Parameters:
beliefBase
- a knowledge base.- Returns:
- "true" if this interpretation satisfies the given knowledge base.
- Throws:
IllegalArgumentException
- IllegalArgumentException if the knowledgebase does not correspond to the expected language.
-
entropy
public double entropy()Description copied from class:RpclProbabilityDistribution
Returns the entropy of this probability distribution.- Overrides:
entropy
in classRpclProbabilityDistribution<ReferenceWorld>
- Returns:
- the entropy of this probability distribution.
-
condensedEntropy
public double condensedEntropy()Returns the condensed entropy of this distribution (neglecting multiplicators of reference worlds.- Returns:
- the condensed entropy of this distribution
-
getUniformDistribution
public static CondensedProbabilityDistribution getUniformDistribution(RpclSemantics semantics, FolSignature signature, Set<Set<Constant>> equivalenceClasses) Returns the uniform distribution on the given signature.- Parameters:
semantics
- the semantics used for the distributionsignature
- a fol signatureequivalenceClasses
- the set of equivalence classes- Returns:
- the uniform distribution on the given signature.
-
getRandomDistribution
public static CondensedProbabilityDistribution getRandomDistribution(RpclSemantics semantics, FolSignature signature, Set<Set<Constant>> equivalenceClasses) Returns a random distribution on the given signature.- Parameters:
semantics
- the semantics used for the distributionsignature
- a fol signatureequivalenceClasses
- the set of equivalence classes- Returns:
- a random distribution on the given signature.
-
toProbabilityDistribution
Converts this condensed probability distribution into an ordinary probability distribution.- Returns:
- a probability distribution.
-
probability
Description copied from class:RpclProbabilityDistribution
Gets the probability of the given closed formula, i.e. the sum of the probabilities of all interpretations satisfying it.- Overrides:
probability
in classRpclProbabilityDistribution<ReferenceWorld>
- Parameters:
f
- a closed fol formula.- Returns:
- a probability.
-