openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Enumerations | Functions | Variables
IGBapd.cc File Reference
#include <iostream>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <fstream>
#include <set>
#include <vector>
#include <deque>
#include <zlib.h>
#include "IGBheader.h"
#include "apd_cmdline.h"
Include dependency graph for IGBapd.cc:

Go to the source code of this file.

Enumerations

enum  thresh_t { Fixed, AboveRest, PerCentRepol, MinDeriv }
 

Functions

float lininterp (float y0, float y1, float x0, float x1, float interp)
 
void output_apd (FILE *out, int n, float *o1, float *o2=NULL, float o1scale=1)
 
void process_action_potential (gengetopt_args_info &, IGBheader *, vector< int > &, FILE *, int)
 
void process_unipoles (gengetopt_args_info &, IGBheader *, vector< int > &, FILE *, int)
 
void process_bipoles (gengetopt_args_info &args, IGBheader *h, vector< int > &nodes, FILE *out, int first)
 determine activations in bipolar recordings More...
 
bool process_specifier (char *sp, set< int > &nodes, int max)
 
void extract_nodes (const char *list, vector< int > &nodes, int max)
 
int main (int argc, char *argv[])
 

Variables

const float UNCOMPUTED = -1
 
const float UNSTARTED = -1
 
const float FINISHED = -2
 
const int NO_PRIOR = -1
 

Enumeration Type Documentation

◆ thresh_t

enum thresh_t
Enumerator
Fixed 
AboveRest 
PerCentRepol 
MinDeriv 

Definition at line 41 of file IGBapd.cc.

Function Documentation

◆ extract_nodes()

void extract_nodes ( const char *  list,
vector< int > &  nodes,
int  max 
)

Definition at line 169 of file IGBapd.cc.

Here is the caller graph for this function:

◆ lininterp()

float lininterp ( float  y0,
float  y1,
float  x0,
float  x1,
float  interp 
)

approxmiate when interp was reached

Definition at line 53 of file IGBapd.cc.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 199 of file IGBapd.cc.

◆ output_apd()

void output_apd ( FILE *  out,
int  n,
float *  o1,
float *  o2 = NULL,
float  o1scale = 1 
)

Definition at line 62 of file IGBapd.cc.

Here is the caller graph for this function:

◆ process_action_potential()

void process_action_potential ( gengetopt_args_info &  args,
IGBheader h,
vector< int > &  nodes,
FILE *  out,
int  first 
)

Definition at line 443 of file IGBapd.cc.

Here is the caller graph for this function:

◆ process_bipoles()

void process_bipoles ( gengetopt_args_info &  args,
IGBheader h,
vector< int > &  nodes,
FILE *  out,
int  first 
)

determine activations in bipolar recordings

Parameters
argscommand line parameters
hIGB header
nodesnodes to analyze
outoutput file
firstfirst time to analyze

An activation occurs if the amplitude of the signal is greater than phimin but does not exceeed phimax, and |dphi/dt| (center difference) exceeds dvdt The time of the greatest peak is recorded during the interval until the magnitude drops below phimin

To be an activation, the duration has to be between act_dur_min and act_dur_max, and minapd has elapsed since the last activation

Definition at line 260 of file IGBapd.cc.

Here is the caller graph for this function:

◆ process_specifier()

bool process_specifier ( char *  sp,
set< int > &  nodes,
int  max 
)

get list of specified nodes from a string: (([0-9]?[-([0-9]+|*))|*)[:[0-9]+] This mean you can specify n -> node n n0-n1 -> nodes n0 to n1 inclusive n-* -> all nodes starting at n

  • -> all nodes To any of these, :d may be appended on the end signifying stride d
Parameters
spuser specified string of nodes
nodesset of nodes
maxnumber of nodes in model
Postcondition
nodes contains all the specified nodes
Returns
true iff all nodes have been specified

Definition at line 95 of file IGBapd.cc.

Here is the caller graph for this function:

◆ process_unipoles()

void process_unipoles ( gengetopt_args_info &  args,
IGBheader h,
vector< int > &  nodes,
FILE *  out,
int  first 
)

Definition at line 349 of file IGBapd.cc.

Here is the caller graph for this function:

Variable Documentation

◆ FINISHED

const float FINISHED = -2

Definition at line 47 of file IGBapd.cc.

◆ NO_PRIOR

const int NO_PRIOR = -1

Definition at line 48 of file IGBapd.cc.

◆ UNCOMPUTED

const float UNCOMPUTED = -1

Definition at line 45 of file IGBapd.cc.

◆ UNSTARTED

const float UNSTARTED = -1

Definition at line 46 of file IGBapd.cc.