spharapy.datasets: Sample data sets

The spharapy.datasets: module includes utilities to provide sample datasets.

spharapy.datasets.load_eeg_256_channel_study()[source]

Load sensor setup and measured EEG data

The data set consists of a triangulation of a 256 channel equidistant EEG cap and EEG data from previously performed experiment addressing the cortical activation related to somatosensory-evoked potentials (SEP). During the experiment the median nerve of the right forearm was stimulated by bipolar electrodes (stimulation rate: 3.7 Hz, interstimulus interval: 270 ms, stimulation strength: motor plus sensor threshold [MAB+99][CAC+08], constant current rectangular pulse wave impulses with a length of 50 mu s, number of stimulations: 6000). Data were sampled at 2048 Hz and software high-pass (24 dB/oct, cutoff-frequency 2 Hz) and notch (50 Hz and two harmonics) filtered. All trials were manually checked for artifacts, the remaining trials were averaged, see also S1 data set in [GEF+15].

Number of vertices

256

Number of triangles

480

SEP Data (EEG)

256 channels, 369 time samples

Time range

50 ms before to 130 ms after stimulation

Sampling frequency

2048 Hz

Parameters
None
Returns
triangulation and EEG data: dictionary

Dictionary-like object containing the triangulation of a simple triangular mesh. The attributes are: ‘vertlist’, the list of vertices, ‘trilist’, the list of triangles, ‘labellist’ the list of labels of the EEG channels, ‘eegdata’, an array containing the EEG data.

spharapy.datasets.load_minimal_triangular_mesh()[source]

Returns the triangulation of a single triangle

The data set consists of a list of three vertices at the unit vectors of vector space :math:`mathbb{R}^3`and a list of a single triangle.

Number of vertices

3

Number of triangles

1

Parameters
None
Returns
triangulationdictionary

Dictionary-like object containing the triangulation of a single triangle. The attributes are: ‘vertlist’, the list of vertices, ‘trilist’, the list of triangles.

spharapy.datasets.load_simple_triangular_mesh()[source]

Returns the triangulation of a simple triangular mesh

The data set consists of a triangulation of an unit hemisphere.

Number of vertices

131

Number of triangles

232

Parameters
None
Returns
triangulationdictionary

Dictionary-like object containing the triangulation of a simple triangular mesh. The attributes are: ‘vertlist’, the list of vertices, ‘trilist’, the list of triangles.