Class RandomWellMatchedWordsEQOracle<I>
- java.lang.Object
-
- de.learnlib.oracle.equivalence.AbstractTestWordEQOracle<Output<I,Boolean>,I,Boolean>
-
- de.learnlib.oracle.equivalence.vpa.RandomWellMatchedWordsEQOracle<I>
-
- Type Parameters:
I
- input symbol type
- All Implemented Interfaces:
EquivalenceOracle<Output<I,Boolean>,I,Boolean>
public class RandomWellMatchedWordsEQOracle<I> extends AbstractTestWordEQOracle<Output<I,Boolean>,I,Boolean>
An equivalence oracle based on the generation of random (well-matched) words.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.learnlib.oracle.EquivalenceOracle
EquivalenceOracle.DFAEquivalenceOracle<I>, EquivalenceOracle.MealyEquivalenceOracle<I,O>, EquivalenceOracle.MooreEquivalenceOracle<I,O>
-
-
Constructor Summary
Constructors Constructor Description RandomWellMatchedWordsEQOracle(Random random, MembershipOracle<I,Boolean> oracle, double callProb, int maxTests, int minLength, int maxLength)
RandomWellMatchedWordsEQOracle(Random random, MembershipOracle<I,Boolean> oracle, double callProb, int maxTests, int minLength, int maxLength, int batchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stream<Word<I>>
generateTestWords(Output<I,Boolean> hypothesis, Collection<? extends I> inputs)
Generate the stream of test words that should be used for the current equivalence check cycle.-
Methods inherited from class de.learnlib.oracle.equivalence.AbstractTestWordEQOracle
findCounterExample
-
-
-
-
Constructor Detail
-
RandomWellMatchedWordsEQOracle
public RandomWellMatchedWordsEQOracle(Random random, MembershipOracle<I,Boolean> oracle, double callProb, int maxTests, int minLength, int maxLength)
-
RandomWellMatchedWordsEQOracle
public RandomWellMatchedWordsEQOracle(Random random, MembershipOracle<I,Boolean> oracle, double callProb, int maxTests, int minLength, int maxLength, int batchSize)
-
-
Method Detail
-
generateTestWords
protected Stream<Word<I>> generateTestWords(Output<I,Boolean> hypothesis, Collection<? extends I> inputs)
Description copied from class:AbstractTestWordEQOracle
Generate the stream of test words that should be used for the current equivalence check cycle.- Specified by:
generateTestWords
in classAbstractTestWordEQOracle<Output<I,Boolean>,I,Boolean>
- Parameters:
hypothesis
- the current hypothesis of the learning algorithminputs
- the collection of inputs to consider- Returns:
- the stream of test words used for equivalence testing
- See Also:
EquivalenceOracle.findCounterExample(Object, Collection)
-
-