pyntbci.stimulus.shift
- pyntbci.stimulus.shift(stimulus: NDArray, stride: int | tuple[int]) NDArray[source]
Shift a code to create multiple circularly shifted versions of it.
- Parameters:
stimulus (NDArray) – The stimulus to shift of shape (1, n_bits).
stride (int | tuple[int]) – The number of bits to shift.
- Returns:
stimulus – The set of stimuli with shifted versions of the original of shape (n_classes, n_bits).
- Return type:
NDArray