pyntbci.stimulus.shift

pyntbci.stimulus.shift(stimulus: ndarray[tuple[int, ...], dtype[_ScalarType_co]], stride: int = 1) ndarray[tuple[int, ...], dtype[_ScalarType_co]][source]

Shift a code to create multiple.

Parameters:
  • stimulus (NDArray) – The stimulus to shift of shape (1, n_bits).

  • stride (int (default: 1)) – 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