braindecode.functional.derivation_matrix#
- braindecode.functional.derivation_matrix(ch_names, electrodes=None, reference=None)[source]#
Each channel as a row over electrode potentials.
- Parameters:
ch_names (
list[str]) –"A"isV(A),"A-B"isV(A) - V(B). Names are compared ignoring case; any other name is one electrode.electrodes (
list[str] |None) – Columns (lower case). Defaults to the electrodes ofch_namesin order of appearance; electrodes missing from the list are added.reference (
str|None) – Reference of the single-electrode channels:None(the recording’s, left implicit), an electrode name ("Cz":AisV(A) - V(Cz)) or"average"(Aminus the mean of the single-electrode channels).
- Return type:
- Returns:
matrix (torch.Tensor) –
(n_channels, n_electrodes), float64.electrodes (list of str) – The columns.