spkit.eeg
.s1005_get_epos2d¶
- spkit.eeg.s1005_get_epos2d(ch_names, case_sensitive=False, reorder=False, clean_label=True, use_precomputed=True)¶
Get 2D projection points for given channel using 10-05 System
- Parameters:
- ch_names: list of str
list of channel names
e.g. ch_names = [‘AF3’,’F7’,’F3’,’FC5’,’T7’,’P7’,’O1’,’O2’,’P8’,’T8’,’FC6’,’F4’,’F8’,’AF4’]
- case_sensitive: bool, default=False
if False, ignoring the upper and lowercase name
- clean_label: bool, default=True
clean the channel names
- reorder: bool, default=False
if order of the position and channel is rearraged.
Deprecated since version 0.0.9.7: It doesn’t make sense to re-order the list.
- Returns:
- pos: 2d-array, size (nc,2)
- ch: channel names
as it is in standard file.
See also
Examples
#sp.eeg.s1005_get_epos2d import numpy as np import matplotlib.pyplot as plt import spkit as sp ch_names = ['AF3','F7','F3','FC5','T7','P7','O1','O2','P8','T8','FC6','F4','F8','AF4'] pos, ch = sp.eeg.s1005_get_epos2d(ch_names) plt.figure(figsize=(12,5)) plt.subplot(121) plt.plot(pos[:,0],pos[:,1],'.',alpha=0.5) for i,ch in enumerate(ch_names): plt.text(pos[i,0],pos[i,1],ch,va='center',ha='center') plt.title('Emotiv: 14 channels') ch_names = sp.eeg.presets.standard_1005_ch pos, ch = sp.eeg.s1005_get_epos2d(ch_names) plt.subplot(122) plt.plot(pos[:,0],pos[:,1],'.',alpha=0.5) for i,ch in enumerate(ch_names): plt.text(pos[i,0],pos[i,1],ch,va='center',ha='center') plt.title(f'All 10-05 Channels: (n{len(ch_names)})') plt.show()
Examples using spkit.eeg.s1005_get_epos2d
¶
Release Highlights for spkit 0.0.9.7
Release Highlights for spkit 0.0.9.7