Class ConcurrentApproxAnalysis
java.lang.Object
org.tweetyproject.arg.bipolar.analysis.AbstractAnalysis
org.tweetyproject.arg.bipolar.analysis.ConcurrentApproxAnalysis
- All Implemented Interfaces:
Analysis
,ProbabilisticJustificationAnalysis
public class ConcurrentApproxAnalysis
extends AbstractAnalysis
implements ProbabilisticJustificationAnalysis
This class implements approximate probabilistic justification of a set of queries using Monte Carlo Sampling of
induced EAFs from a PEAF. The computation is done in batches, the main thread checks the condition of when to stop
after each batch.
- Author:
- Taha Dogan Gunes
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConcurrentApproxAnalysis
(PEAFTheory peafTheory, AbstractExtensionReasoner extensionReasoner, double errorLevel) Constructs ConcurrentApproxAnalysis with noThreads equal to availableProcessors - 1ConcurrentApproxAnalysis
(PEAFTheory peafTheory, AbstractExtensionReasoner extensionReasoner, double errorLevel, int noThreads) Constructs ConcurrentApproxAnalysis with batchSize equal to noThreads*2ConcurrentApproxAnalysis
(PEAFTheory peafTheory, AbstractExtensionReasoner extensionReasoner, double errorLevel, int noThreads, int batchSize) The default constructor for ConcurrentApproxAnalysis -
Method Summary
Modifier and TypeMethodDescriptionComputes approximately what is probabilistic justification of the given set of arguments in the PEAF given error level concurrently.Methods inherited from class org.tweetyproject.arg.bipolar.analysis.AbstractAnalysis
setPEAFTheory
-
Field Details
-
total
public double totalTotal
-
-
Constructor Details
-
ConcurrentApproxAnalysis
public ConcurrentApproxAnalysis(PEAFTheory peafTheory, AbstractExtensionReasoner extensionReasoner, double errorLevel) Constructs ConcurrentApproxAnalysis with noThreads equal to availableProcessors - 1- Parameters:
peafTheory
- the PEAFTheory to be analyzedextensionReasoner
- the extension reasonererrorLevel
- the error level in double
-
ConcurrentApproxAnalysis
public ConcurrentApproxAnalysis(PEAFTheory peafTheory, AbstractExtensionReasoner extensionReasoner, double errorLevel, int noThreads) Constructs ConcurrentApproxAnalysis with batchSize equal to noThreads*2- Parameters:
peafTheory
- the PEAFTheory to be analyzedextensionReasoner
- the extension reasonererrorLevel
- the error level in doublenoThreads
- the number of threads
-
ConcurrentApproxAnalysis
public ConcurrentApproxAnalysis(PEAFTheory peafTheory, AbstractExtensionReasoner extensionReasoner, double errorLevel, int noThreads, int batchSize) The default constructor for ConcurrentApproxAnalysis- Parameters:
peafTheory
- the PEAFTheory to be analyzedextensionReasoner
- the extension reasonererrorLevel
- the error level in doublenoThreads
- the number of threadsbatchSize
- the number jobs to be completed for checking when to stop
-
-
Method Details