v2.0.0
Loading...
Searching...
No Matches
dipole_fit.cpp File Reference
#include "dipole_fit.h"
#include "../c/mne_meas_data_set.h"
#include "guess_data.h"
#include <string.h>
#include <memory>
Include dependency graph for dipole_fit.cpp:

Go to the source code of this file.

Macros

#define PROGRAM_VERSION   "1.00"
#define FAIL   -1
#define OK   0
#define TRUE   1
#define FALSE   0
#define BIG_TIME   1e6
#define SEG_LEN   10.0
#define EPS_VALUES   0.05
#define MALLOC(x, t)
#define REALLOC(x, y, t)
#define FREE(x)
#define ALLOC_CMATRIX(x, y)
#define FREE_CMATRIX(m)

Functions

float ** mne_cmatrix (int nr, int nc)
void mne_free_cmatrix (float **m)
void mne_free_name_list (char **list, int nlist)
 

mneChSelection mne_ch_selection_these (const QString &selname, const QStringList &names, int nch)
int mne_ch_selection_assign_chs (mneChSelection sel, MNERawData *data)
int mne_get_values_from_data (float time, float integ, float **data, int nsamp, int nch, float tmin, float sfreq, int use_abs, float *value)
int mne_get_values_from_data_ch (float time, float integ, float **data, int nsamp, int nch, float tmin, float sfreq, int use_abs, float *value)

Macro Definition Documentation

◆ ALLOC_CMATRIX

#define ALLOC_CMATRIX ( x,
y )
Value:
mne_cmatrix((x),(y))
float ** mne_cmatrix(int nr, int nc)

Definition at line 59 of file dipole_fit.cpp.

◆ BIG_TIME

#define BIG_TIME   1e6

Definition at line 45 of file dipole_fit.cpp.

◆ EPS_VALUES

#define EPS_VALUES   0.05

Definition at line 49 of file dipole_fit.cpp.

◆ FAIL

#define FAIL   -1

Definition at line 30 of file dipole_fit.cpp.

◆ FALSE

#define FALSE   0

Definition at line 42 of file dipole_fit.cpp.

◆ FREE

#define FREE ( x)
Value:
if ((char *)(x) != NULL) free((char *)(x))

Definition at line 57 of file dipole_fit.cpp.

◆ FREE_CMATRIX

#define FREE_CMATRIX ( m)
Value:
void mne_free_cmatrix(float **m)

Definition at line 61 of file dipole_fit.cpp.

◆ MALLOC

#define MALLOC ( x,
t )
Value:
(t *)malloc((x)*sizeof(t))

Definition at line 55 of file dipole_fit.cpp.

◆ OK

#define OK   0

Definition at line 34 of file dipole_fit.cpp.

◆ PROGRAM_VERSION

#define PROGRAM_VERSION   "1.00"

Definition at line 26 of file dipole_fit.cpp.

◆ REALLOC

#define REALLOC ( x,
y,
t )
Value:
(t *)((x == NULL) ? malloc((y)*sizeof(t)) : realloc((x),(y)*sizeof(t)))

Definition at line 56 of file dipole_fit.cpp.

◆ SEG_LEN

#define SEG_LEN   10.0

Definition at line 47 of file dipole_fit.cpp.

◆ TRUE

#define TRUE   1

Definition at line 38 of file dipole_fit.cpp.

Function Documentation

◆ mne_ch_selection_assign_chs()

int mne_ch_selection_assign_chs ( mneChSelection sel,
MNERawData * data )

Definition at line 213 of file dipole_fit.cpp.

◆ mne_ch_selection_these()

mneChSelection mne_ch_selection_these ( const QString & selname,
const QStringList & names,
int nch )

Definition at line 181 of file dipole_fit.cpp.

◆ mne_cmatrix()

float ** mne_cmatrix ( int nr,
int nc )

Definition at line 80 of file dipole_fit.cpp.

◆ mne_free_cmatrix()

void mne_free_cmatrix ( float ** m)

Definition at line 97 of file dipole_fit.cpp.

◆ mne_free_name_list()

void mne_free_name_list ( char ** list,
int nlist )

Definition at line 143 of file dipole_fit.cpp.

◆ mne_get_values_from_data()

int mne_get_values_from_data ( float time,
float integ,
float ** data,
int nsamp,
int nch,
float tmin,
float sfreq,
int use_abs,
float * value )

Definition at line 306 of file dipole_fit.cpp.

◆ mne_get_values_from_data_ch()

int mne_get_values_from_data_ch ( float time,
float integ,
float ** data,
int nsamp,
int nch,
float tmin,
float sfreq,
int use_abs,
float * value )

Definition at line 433 of file dipole_fit.cpp.