API reference ============= .. toctree:: :maxdepth: 1 FEM ~~~ The :py:class:`FEM ` class contains all the classes and methods required to build a proper finite element model. To construct the mesh, use one of the following methods: * :py:func:`mesh_from_array ` * :py:func:`mesh_from_nii ` * :py:func:`mesh_from_masks ` * :py:func:`mesh_from_niis ` Next, add fields to the mesh with: * :py:func:`field_from_elems ` * :py:func:`field_from_array ` * :py:func:`field_from_nii ` Finally, add sensors with: * :py:func:`add_point_sensor ` * :py:func:`add_point_sensor_on ` * :py:func:`add_point_sensor_in ` * :py:func:`add_point_sensors ` * :py:func:`add_point_sensors_on ` * :py:func:`add_point_sensors_in ` * :py:func:`add_point_sensors_from_tsv ` * :py:func:`add_point_sensors_from_tsv_on ` * :py:func:`add_point_sensors_from_tsv_in ` EEG ~~~ The :py:mod:`EEG ` module contains everything related with electroencephalography. Leadfield --------- The :py:mod:`Leadfield ` module provides both the single and parametric classes to compute respectively a single leadfield matrix and a parametric leadfield matrix. The single leadfield matrix can be obtained with the :py:class:`ProbEEGLeadfield ` and :py:class:`SolEEGLeadfield ` classes. The parametric leadfield atrix on the other hand is computed with the :py:class:`ProbParamEEGLeadfield `, :py:class:`SolParamEEGLeadfield ` and :py:class:`SurrEEGLeadfield ` classes. HD-tDCS ~~~~~~~