Class DefaultMeReasoner
java.lang.Object
org.tweetyproject.logics.pcl.reasoner.AbstractPclReasoner
org.tweetyproject.logics.pcl.reasoner.DefaultMeReasoner
- All Implemented Interfaces:
ModelProvider<ProbabilisticConditional,
,PclBeliefSet, ProbabilityDistribution<PossibleWorld>> QuantitativeReasoner<PclBeliefSet,
,PlFormula> Reasoner<Double,
PclBeliefSet, PlFormula>
This class implements a maximum entropy reasoner for probabilistic
conditional logic. This means, it computes the ME-distribution
for the given belief set and answers queries with respect to
this ME-distribution.
- Author:
- Matthias Thimm
-
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 baseboolean
query
(PclBeliefSet beliefbase, PlFormula formula) Queries the given belief base for the given formula.
-
Constructor Details
-
DefaultMeReasoner
Constructor- Parameters:
rootFinder
- the rootfinder
-
-
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.
-
isInstalled
public boolean isInstalled()- Returns:
- if reasoner is installed
-