Skip to main content

InvDipole

Namespace: INVLIB  ·  Library: Inverse Library

#include <inv/inv_dipole.h>

template <class T>
class INVLIB::InvDipole

DECLARE CLASS Dipoles.

Stores position, orientation, and correlation of a single current dipole estimated by RAP MUSIC

src/examples/ex_inv_beamformer/main.cpp
// Noise-free data from the two sources with different time courses; RAP-MUSIC scans source pairs.
const int nSamples = 60;
MatrixXd measured(G.rows(), nSamples);
for (int t = 0; t < nSamples; ++t)
measured.col(t) = g1 * std::sin(0.21 * t) + g2 * std::sin(0.53 * t + 0.4);
QList<InvDipolePair<double>> pairs;
InvRapMusic rap(fwd, false, 1, 0.5); // one correlated pair, subspace correlation >= 0.5
rap.calculateInverse(measured, pairs);
QList<InvDipolePair<double>> powellPairs;
InvPwlRapMusic pwlRap(fwd, false, 1, 0.5); // Powell coordinate search: far fewer pairs, may stop at a local optimum
pwlRap.calculateInverse(measured, powellPairs);

Public Methods​

InvDipole()​

Default constructor.


~InvDipole()​

dtor Do garbage collecting


x()​


y()​


z()​


x()​


y()​


z()​


phi_x()​


phi_y()​


phi_z()​


phi_x()​


phi_y()​


phi_z()​


clean()​

clean


Example​

Authors of this file​