Package net.sf.tweety.arg.prob.reasoner
Class MonteCarloPafReasoner
- java.lang.Object
-
- net.sf.tweety.arg.prob.reasoner.AbstractPafReasoner
-
- net.sf.tweety.arg.prob.reasoner.MonteCarloPafReasoner
-
- All Implemented Interfaces:
QuantitativeReasoner<ProbabilisticArgumentationFramework,Argument>,Reasoner<java.lang.Double,ProbabilisticArgumentationFramework,Argument>
public class MonteCarloPafReasoner extends AbstractPafReasoner
This class implements the Monte Carlo algorithm for estimating probabilities of extensions in probabilistic argumentation frameworks from [Li, Oren, Norman. Probabilistic Argumentation Frameworks. TAFA'2011].- Author:
- Matthias Thimm
-
-
Field Summary
Fields Modifier and Type Field Description private intnumberOfTrialsThe number of runs of the Monte Carlo simulation.
-
Constructor Summary
Constructors Constructor Description MonteCarloPafReasoner(Semantics semantics, int numberOfTrials)Creates a new reasoner.
-
Method Summary
Modifier and Type Method Description java.lang.Doublequery(ProbabilisticArgumentationFramework paf, Extension ext)Estimates the probability that the given set of arguments is an extensionjava.lang.Doublequery(ProbabilisticArgumentationFramework beliefbase, Argument formula, InferenceMode inferenceMode)Queries the given PAF for the given argument using the given inference type.-
Methods inherited from class net.sf.tweety.arg.prob.reasoner.AbstractPafReasoner
getSemantics, query
-
-
-
-
Constructor Detail
-
MonteCarloPafReasoner
public MonteCarloPafReasoner(Semantics semantics, int numberOfTrials)
Creates a new reasoner.- Parameters:
semantics- semantics used for determining extensions.numberOfTrials- The number of runs of the Monte Carlo simulation
-
-
Method Detail
-
query
public java.lang.Double query(ProbabilisticArgumentationFramework paf, Extension ext)
Description copied from class:AbstractPafReasonerEstimates the probability that the given set of arguments is an extension- Specified by:
queryin classAbstractPafReasoner- Parameters:
paf- a PAFext- some set of arguments- Returns:
- the estimated probability of the given set to be an extension
-
query
public java.lang.Double query(ProbabilisticArgumentationFramework beliefbase, Argument formula, InferenceMode inferenceMode)
Description copied from class:AbstractPafReasonerQueries the given PAF for the given argument using the given inference type.- Specified by:
queryin classAbstractPafReasoner- Parameters:
beliefbase- an PAFformula- a single argumentinferenceMode- either InferenceMode.SKEPTICAL or InferenceMode.CREDULOUS- Returns:
- probability of the argument
-
-