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
Fields -
Constructor Summary
Constructors -
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 basebooleanquery(PclBeliefSet beliefbase, PlFormula formula) Queries the given belief base for the given formula.
-
Field Details
-
MANHATTAN
public static final int MANHATTAN- See Also:
-
EUCLIDEAN
public static final int EUCLIDEAN- See Also:
-
MAXIMUM
public static final int MAXIMUM- See Also:
-
-
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:ReasonerQueries the given belief base for the given formula.- Specified by:
queryin interfaceReasoner<Double,PclBeliefSet, PlFormula> - Specified by:
queryin classAbstractPclReasoner- Parameters:
beliefbase- a belief baseformula- a formula- Returns:
- the answer to the query
-
getModels
Description copied from interface:ModelProviderReturns a characterizing model of the given belief base- Specified by:
getModelsin interfaceModelProvider<ProbabilisticConditional,PclBeliefSet, ProbabilityDistribution<PossibleWorld>> - Specified by:
getModelsin classAbstractPclReasoner- Parameters:
bbase- some belief base- Returns:
- the (selected) models of the belief base
-
getModel
Description copied from interface:ModelProviderReturns 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:
getModelin interfaceModelProvider<ProbabilisticConditional,PclBeliefSet, ProbabilityDistribution<PossibleWorld>> - Specified by:
getModelin 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.
-
isInstalled
public boolean isInstalled()- Returns:
- if reasoner is installed
-