Skip to main content

CoilParam

Namespace: INVLIB  ·  Library: Inverse Library

#include <inv/inv_hpi_fit.h>

struct INVLIB::CoilParam

The strucut specifing the coil parameters.

Estimated dipole parameters (position, moment, goodness-of-fit) for a single HPI coil


Public Methods​

CoilParam(iNumCoils)​


Example​

No example of its own: Per-coil dipole record InvHpiFit passes between its private fit steps; callers read HpiFitResult.

It is exercised by:

src/examples/ex_inv_hpi/main.cpp
InvHpiDataUpdater updater(info); // good MEG channels, their sensors and the digitised coil positions
updater.prepareDataAndProjectors(segment, MatrixXd::Identity(info->nchan, info->nchan));
// The coil frequencies are known but not their order; the first fit with bOrderFrequencies finds it.
const InvHpiModelParameters model(QVector<int>({154, 158, 161, 166}), info->sfreq, info->linefreq, true);
InvHpiFit hpi(updater.getSensors());
HpiFitResult fit;
hpi.fit(updater.getProjectedData(), updater.getProjectors(), model, updater.getHpiDigitizer(), true, fit);

From ex_inv_hpi.

Authors of this file​