pyntbci.stimulus.modulate
- pyntbci.stimulus.modulate(stimulus: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]] [source]
Modulate a stimulus. Modulation is done by xoring with a double frequency bit-clock [15]. This limits low-frequency content as well as the event distribution (i.e., limits to shorter (only two) run-lengths).
- Parameters:
stimulus (NDArray) – A stimulus matrix of shape (n_classes, n_bits).
- Returns:
stimulus – A modulated stimulus matrix of shape (n_classes, 2 * n_bits).
- Return type:
NDArray
References