public class DeBruijnSequenceGenerator extends Object
Constructor and Description |
---|
DeBruijnSequenceGenerator() |
Modifier and Type | Method and Description |
---|---|
static CyclicSequenceAdaptor[] |
generate(DiscreteAlphabet alphabet,
int n)
Generates a De Bruijn sequence of length
![]() |
static CyclicSequenceAdaptor |
generate(DiscreteAlphabet alphabet,
int n,
int alphabetShift)
Generates a De Bruijn sequence using the supplied alphabet and the given alphabet shift, i.e., for a cyclic shift of the symbols
of the alphabet.
|
public static CyclicSequenceAdaptor[] generate(DiscreteAlphabet alphabet, int n) throws WrongAlphabetException, WrongSequenceTypeException
alphabet
- the alphabetn
- the exponent of length length, corresponds to the length of n-mers covered exactly onceWrongAlphabetException
- forwarded from IntSequence
, should not happenWrongSequenceTypeException
- forwarded from IntSequence
, should not happenpublic static CyclicSequenceAdaptor generate(DiscreteAlphabet alphabet, int n, int alphabetShift) throws WrongAlphabetException, WrongSequenceTypeException
alphabet
- the alphabetn
- the length of the covered n-mersalphabetShift
- the alphabet shift (0 equals no shift)WrongAlphabetException
- forwarded from IntSequence
, should not happenWrongSequenceTypeException
- forwarded from IntSequence
, should not happen