openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Namespaces | Macros | Typedefs | Enumerations | Functions
ap_analyzer.cc File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "ap_analyzer.h"
#include "basics.h"
Include dependency graph for ap_analyzer.cc:

Go to the source code of this file.

Namespaces

 limpet
 

Macros

#define BOGUS   9999
 
#define NUM_STEADY_APs   5
 
#define SS_PERC_ERR   0.01
 

Typedefs

typedef enum limpet::_act_events limpet::act_events
 
typedef enum limpet::_repol_events limpet::repol_events
 
typedef enum limpet::_ampl_events limpet::ampl_events
 

Enumerations

enum  limpet::_act_events { limpet::xAPD90, limpet::VmDotMx, limpet::nActEvents }
 
enum  limpet::_repol_events { limpet::APD90, limpet::APD30, limpet::nRepolEvents }
 
enum  limpet::_ampl_events { limpet::VmMX, limpet::VmMN, limpet::nAmplEvents }
 

Functions

void limpet::shift_vm_trace (double vm, action_potential *AP, timer_manager *tm)
 
bool limpet::check_threshold (ap_event *e, timer_manager *tm)
 
bool limpet::check_mx_rate (ap_event *e, timer_manager *tm)
 
bool limpet::check_mx_val (ap_event *e, timer_manager *tm)
 
bool limpet::update_steady_state (action_potential *AP)
 
void limpet::print_AP_stats (action_potential *AP)
 
int limpet::initialize_AP_analysis (action_potential *AP)
 
void limpet::cleanup_AP_analysis (action_potential *AP)
 
void limpet::calibrate_thresholds (action_potential *AP)
 
bool limpet::check_events (double vm, action_potential *AP, timer_manager *tm)
 
bool limpet::check_steady_state (steady_state_ap *ss)
 
void limpet::print_AP_stats_header (action_potential *AP, FILE *outbuf)
 

Detailed Description

Provide routines for analyzing action potentials for statistical purposes

To use action potential analysis functions provided in here

  1. initialize_AP()
  2. initialize Vm buffer with resting values of a particular ionic model
    for(int i=0;i<VM_HIST_LEN;i++) AP.vm_trc[i] = Vm0;
  3. check_events()

check_events() has to be called prior to calling compute_ionic_current The routines inhere are intended for use with bench only, they cannot be used with tissue level codes. The routines could be extended to work with tissue level code, however, a major rewrite would be required to be more memory efficient.

Definition in file ap_analyzer.cc.

Macro Definition Documentation

◆ BOGUS

#define BOGUS   9999

◆ NUM_STEADY_APs

#define NUM_STEADY_APs   5

◆ SS_PERC_ERR

#define SS_PERC_ERR   0.01