pyntbci.stimulus.modulate

pyntbci.stimulus.modulate(stimulus: NDArray) NDArray[source]

Modulate a stimulus. Modulation is done by xoring with a double frequency bit-clock. 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

Thielen, J., van den Broek, P., Farquhar, J., & Desain, P. (2015). Broad-Band visually evoked potentials: re(con)volution in brain-computer interfacing. PLOS ONE, 10(7), e0133797. doi: 10.1371/journal.pone.0133797