Class GeneralizedMeReasoner
java.lang.Object
org.tweetyproject.logics.pcl.reasoner.AbstractPclReasoner
org.tweetyproject.logics.pcl.reasoner.GeneralizedMeReasoner
- All Implemented Interfaces:
ModelProvider<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
,QuantitativeReasoner<PclBeliefSet,PlFormula>
,Reasoner<Double,PclBeliefSet,PlFormula>
This class implements a generalized maximum entropy reasoner for probabilistic
conditional logic as proposed in [Potyka, Thimm, 2014] which also works for
inconsistent belief sets. It computes the generalized ME-distribution for
the given belief set and answers queries with respect to this ME-distribution.
- Author:
- Matthias Thimm
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetModel(PclBeliefSet beliefbase)
Returns a single (dedicated) model of the given belief base.getModel(PclBeliefSet bs, PlSignature signature)
Computes the ME-distribution this reasoner bases on.getModels(PclBeliefSet bbase)
Returns a characterizing model of the given belief basequery(PclBeliefSet beliefbase, PlFormula formula)
Queries the given belief base for the given formula.
-
Field Details
-
MANHATTAN
public static final int MANHATTAN- See Also:
- Constant Field Values
-
EUCLIDEAN
public static final int EUCLIDEAN- See Also:
- Constant Field Values
-
MAXIMUM
public static final int MAXIMUM- See Also:
- Constant Field Values
-
-
Constructor Details
-
GeneralizedMeReasoner
public GeneralizedMeReasoner(int p)Creates a new generalized ME-reasoner- Parameters:
p
- the p-norm used
-
-
Method Details
-
query
Description copied from interface:Reasoner
Queries the given belief base for the given formula.- Specified by:
query
in interfaceReasoner<Double,PclBeliefSet,PlFormula>
- Specified by:
query
in classAbstractPclReasoner
- Parameters:
beliefbase
- a belief baseformula
- a formula- Returns:
- the answer to the query
-
getModels
Description copied from interface:ModelProvider
Returns a characterizing model of the given belief base- Specified by:
getModels
in interfaceModelProvider<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
- Specified by:
getModels
in classAbstractPclReasoner
- Parameters:
bbase
- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProvider
Returns a single (dedicated) model of the given belief base. If the implemented method allows for more than one dedicated model, the selection may be non-deterministic.- Specified by:
getModel
in interfaceModelProvider<ProbabilisticConditional,PclBeliefSet,ProbabilityDistribution<PossibleWorld>>
- Specified by:
getModel
in classAbstractPclReasoner
- Parameters:
beliefbase
- some belief base- Returns:
- a selected model of the belief base.
-
getModel
Computes the ME-distribution this reasoner bases on.- Parameters:
bs
- the belief setsignature
- the signature- Returns:
- the ME-distribution this reasoner bases on.
-