public class CnfSampler extends net.sf.tweety.commons.BeliefSetSampler<PropositionalFormula,PlBeliefSet>
| Constructor and Description |
|---|
CnfSampler(net.sf.tweety.commons.Signature signature,
double maxVariableRatio)
Creates a new sampler for the given signature.
|
CnfSampler(net.sf.tweety.commons.Signature signature,
double maxVariableRatio,
int minLength,
int maxLength)
Creates a new sampler for the given signature.
|
| Modifier and Type | Method and Description |
|---|---|
PlBeliefSet |
next() |
PropositionalFormula |
sampleFormula()
Returns a random formula
|
getMaxLength, getMinLength, getSignature, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic CnfSampler(net.sf.tweety.commons.Signature signature,
double maxVariableRatio)
signature - maxVariableRatio - the maximum ratio (a value between 0 and 1) of variables
of the signature appearing in some formula.public CnfSampler(net.sf.tweety.commons.Signature signature,
double maxVariableRatio,
int minLength,
int maxLength)
signature - maxVariableRatio - the maximum ratio (a value between 0 and 1) of variables
of the signature appearing in some formula.minLength - the minimum length of knowledge basesmaxLength - the maximum length of knowledge basespublic PlBeliefSet next()
next in interface Iterator<PlBeliefSet>next in interface net.sf.tweety.commons.BeliefSetIterator<PropositionalFormula,PlBeliefSet>next in class net.sf.tweety.commons.BeliefSetSampler<PropositionalFormula,PlBeliefSet>public PropositionalFormula sampleFormula()
Copyright © 2019. All rights reserved.