Package org.tweetyproject.logics.pl.util
Class ContensionSampler
java.lang.Object
org.tweetyproject.commons.BeliefSetSampler<PlFormula,PlBeliefSet>
org.tweetyproject.logics.pl.util.ContensionSampler
- All Implemented Interfaces:
Iterator<PlBeliefSet>
,BeliefSetIterator<PlFormula,
PlBeliefSet>
Generates random propositional belief base with a given
inconsistency measure (for the contension inconsistency measure)
and of a given size.
- Author:
- Matthias Thimm
-
Field Summary
Fields inherited from class org.tweetyproject.commons.BeliefSetSampler
DEFAULT_MAXIMUM_BELIEFBASE_LENGTH, DEFAULT_MINIMUM_BELIEFBASE_LENGTH
-
Constructor Summary
ConstructorDescriptionContensionSampler
(PlSignature signature, int incvalue) Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt.ContensionSampler
(PlSignature signature, int incvalue, int minLength, int maxLength) Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt. -
Method Summary
Methods inherited from class org.tweetyproject.commons.BeliefSetSampler
getMaxLength, getMinLength, getSamplerSignature, hasNext
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ContensionSampler
Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt. the contension inconsistency measure)- Parameters:
signature
- some propositional signatureincvalue
- some inconsistency value.
-
ContensionSampler
Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt. the contension inconsistency measure)- Parameters:
signature
- some propositional signatureincvalue
- some inconsistency value.minLength
- the minimum length of knowledge basesmaxLength
- the maximum length of knowledge bases
-
-
Method Details
-
next
- Specified by:
next
in interfaceBeliefSetIterator<PlFormula,
PlBeliefSet> - Specified by:
next
in interfaceIterator<PlBeliefSet>
- Specified by:
next
in classBeliefSetSampler<PlFormula,
PlBeliefSet>
-