#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"
Go to the source code of this file.
|
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[]) |
|
◆ thresh_t
Enumerator |
---|
Fixed | |
AboveRest | |
PerCentRepol | |
MinDeriv | |
Definition at line 41 of file IGBapd.cc.
◆ extract_nodes()
void extract_nodes |
( |
const char * |
list, |
|
|
vector< int > & |
nodes, |
|
|
int |
max |
|
) |
| |
◆ 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.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ output_apd()
void output_apd |
( |
FILE * |
out, |
|
|
int |
n, |
|
|
float * |
o1, |
|
|
float * |
o2 = NULL , |
|
|
float |
o1scale = 1 |
|
) |
| |
◆ process_action_potential()
void process_action_potential |
( |
gengetopt_args_info & |
args, |
|
|
IGBheader * |
h, |
|
|
vector< int > & |
nodes, |
|
|
FILE * |
out, |
|
|
int |
first |
|
) |
| |
◆ process_bipoles()
void process_bipoles |
( |
gengetopt_args_info & |
args, |
|
|
IGBheader * |
h, |
|
|
vector< int > & |
nodes, |
|
|
FILE * |
out, |
|
|
int |
first |
|
) |
| |
determine activations in bipolar recordings
- Parameters
-
args | command line parameters |
h | IGB header |
nodes | nodes to analyze |
out | output file |
first | first 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.
◆ 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
-
sp | user specified string of nodes |
nodes | set of nodes |
max | number 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.
◆ process_unipoles()
void process_unipoles |
( |
gengetopt_args_info & |
args, |
|
|
IGBheader * |
h, |
|
|
vector< int > & |
nodes, |
|
|
FILE * |
out, |
|
|
int |
first |
|
) |
| |
◆ FINISHED
const float FINISHED = -2 |
◆ NO_PRIOR
◆ UNCOMPUTED
const float UNCOMPUTED = -1 |
◆ UNSTARTED
const float UNSTARTED = -1 |