Class RandomIncisionFunction<T extends net.sf.tweety.commons.Formula>

  • Type Parameters:
    T - The formula this incision function works on
    All Implemented Interfaces:
    IncisionFunction<T>

    public class RandomIncisionFunction<T extends net.sf.tweety.commons.Formula>
    extends Object
    implements IncisionFunction<T>
    This class implements an incision function that just randomly selects a minimal incision.
    NOTE: results of this function are not deterministic and may not be reproduced (however each result is a valid incision)
    Author:
    Matthias Thimm
    • Constructor Detail

      • RandomIncisionFunction

        public RandomIncisionFunction()
    • Method Detail

      • incise

        public Collection<T> incise​(Collection<Collection<T>> kernelSets)
        Description copied from interface: IncisionFunction
        Selects from each collection in the given collection one element and returns the collection of all those elements.
        Specified by:
        incise in interface IncisionFunction<T extends net.sf.tweety.commons.Formula>
        Parameters:
        kernelSets - a collection of kernel sets.
        Returns:
        the selected elements.