Class ContensionSampler

  • All Implemented Interfaces:
    Iterator<PlBeliefSet>, net.sf.tweety.commons.BeliefSetIterator<PlFormula,​PlBeliefSet>

    public class ContensionSampler
    extends net.sf.tweety.commons.BeliefSetSampler<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 net.sf.tweety.commons.BeliefSetSampler

        DEFAULT_MAXIMUM_BELIEFBASE_LENGTH, DEFAULT_MINIMUM_BELIEFBASE_LENGTH
    • Constructor Summary

      Constructors 
      Constructor Description
      ContensionSampler​(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.
    • Constructor Detail

      • ContensionSampler

        public ContensionSampler​(PlSignature signature,
                                 int incvalue)
        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 signature
        incvalue - some inconsistency value.
      • ContensionSampler

        public 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. the contension inconsistency measure)
        Parameters:
        signature - some propositional signature
        incvalue - some inconsistency value.
        minLength - the minimum length of knowledge bases
        maxLength - the maximum length of knowledge bases