public class SyntacticEnumeratingPlBeliefSetSampler extends net.sf.tweety.commons.BeliefBaseSampler<PlBeliefSet>
| Constructor and Description |
|---|
SyntacticEnumeratingPlBeliefSetSampler(net.sf.tweety.commons.Signature signature,
int formulaLength,
File pathToTmp,
boolean deleteTmp)
Creates a new sampler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateFormulasOfLength(int length)
Generates all formulas of the given length and stores them
in "pathToTemp/length/"
|
PlBeliefSet |
randomSample(int minLength,
int maxLength) |
public SyntacticEnumeratingPlBeliefSetSampler(net.sf.tweety.commons.Signature signature,
int formulaLength,
File pathToTmp,
boolean deleteTmp)
signature - the signature for formulas of the generated belief set.formulaLength - the maximal length of each formula (each proposition, negation, conjunction, and
disjunction counts one).pathToTmp - the path to a folder where intermediate results (all formulas up to the required length)
are storeddeleteTmp - if "true" then the temporary folder is cleaned after each sample (it is recommended to set this
to "false" to speed up sampling)public void generateFormulasOfLength(int length)
throws IOException
length - the length of the formulaIOExceptionpublic PlBeliefSet randomSample(int minLength, int maxLength)
randomSample in class net.sf.tweety.commons.BeliefBaseSampler<PlBeliefSet>Copyright © 2018. All rights reserved.