Skip to main content

make_sphere_forward

Function make_sphere_forward 

Source
pub fn make_sphere_forward(
    electrodes: &Array2<f64>,
    src_pos: &Array2<f64>,
    src_normals: &Array2<f64>,
    sphere: &SphereModel,
) -> ForwardOperator
Expand description

Compute a fixed-orientation EEG forward model using a spherical head.

Each source has a single orientation (given by src_normals), so the gain matrix has shape [n_electrodes, n_sources].

§Arguments

  • electrodes — Electrode positions, shape [n_elec, 3], in metres.
  • src_pos — Source positions, shape [n_src, 3], in metres.
  • src_normals — Source orientations (unit vectors), shape [n_src, 3].
  • sphere — Spherical head model parameters.

§Returns

A ForwardOperator with fixed orientation.