pyntbci.stimulus.make_de_bruijn_sequence
- pyntbci.stimulus.make_de_bruijn_sequence(k: int = 2, n: int = 6, seed: list[int] | None = None) ndarray[Any, dtype[_ScalarType_co]] [source]
Make a de Bruijn sequence. This code to generate a de Bruijn sequence [9] is largely inspired by [10].
- Parameters:
k (int (default: 2)) – The size of the alphabet.
n (int (default: 6)) – The order of the sequence.
seed (list[int] (default: None)) – Seed for the initial register. None leads to an all zero initial register.
- Returns:
stimulus – A matrix with a de Bruijn sequence of shape (1, n_bits).
- Return type:
NDArray
References