public class RandomSampler extends net.sf.tweety.commons.BeliefSetSampler<PropositionalFormula,PlBeliefSet>
| Constructor and Description |
|---|
RandomSampler(net.sf.tweety.commons.Signature signature,
double worldProb)
Creates a new sampler for the given signature
|
RandomSampler(net.sf.tweety.commons.Signature signature,
double worldProb,
int minLength,
int maxLength)
Creates a new sampler for the given signature
|
| Modifier and Type | Method and Description |
|---|---|
PlBeliefSet |
next() |
getMaxLength, getMinLength, getSignature, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic RandomSampler(net.sf.tweety.commons.Signature signature,
double worldProb)
signature - some signatureworldProb - Probability of selecting any world as a model of a formulapublic RandomSampler(net.sf.tweety.commons.Signature signature,
double worldProb,
int minLength,
int maxLength)
signature - some signatureworldProb - Probability of selecting any world as a model of a formulaminLength - 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>Copyright © 2019. All rights reserved.