29 #define CALIBRATION_BEAT 3
32 #define def_APD90_thresh -66.
33 #define def_APD30_thresh -2.
centralize time managment and output triggering
enum limpet::_event_meth event_meth
bool check_steady_state(steady_state_ap *ss)
enum limpet::_ap_states ap_states
int initialize_AP_analysis(action_potential *AP)
union limpet::_event_class event_class
void print_AP_stats_header(action_potential *AP, FILE *outbuf)
void cleanup_AP_analysis(action_potential *AP)
void calibrate_thresholds(action_potential *AP)
bool check_events(double vm, action_potential *AP, timer_manager *tm)
ap_events ampls
amplitude events (mx or mn found in a signal)
int calBeat
beat number used to calibrate thresholds
steady_state_ap ss
steady state detection
float APD
standard APD as measured by APD90
bool pmat
indiacte premature AP
FILE * rstats
output restitution statistics only
ap_events repols
repolarization events
FILE * stats
output statistics for each AP
double dvm_trc[VM_HIST_LEN]
float triang
AP triangulation, APD90-APD30.
float DIp
DI of the previous AP.
double vm_trc[VM_HIST_LEN]
ap_events acts
activation events
ap_states state
current state of AP, ongoing AP or diastole
double s
value of signal when event occurred
double t
time when event was observed
double * trace
short trace of signal to analyze
bool p_slope
toggle max min search
event_meth m
method is MX_VAL
float * p
array of parameters at previous AP
int cnt
count number of beats in steady state
int num_params
number of parameters we use to decide steady state
float * c
array of parameters at current AP
int num_APs
minimum number of APs for steady state
Timers and timer manager.
event_x_threshold x_thresh