Newer
Older
/*
Copyright (C) 2011 Georgia Institute of Technology
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <default_gui_model.h>
#include <math.h>
#include <string>
#include <vector>
// All parameters and functions related to the gAPqr8 class.
class gAPqr8 : public DefaultGUIModel
{
public:
gAPqr8(void);
virtual ~gAPqr8(void);
virtual void execute(void);
protected:
virtual void update(DefaultGUIModel::update_flags_t);
private:
// arrays
double Vm_log[10000] = {0};
double ideal_AP[10000] = {0};
double Vm_diff_log[10000] = {0};
// cell related parameters
double Vm;
double slope_thresh;
double V_cutoff;
double Rm_corr_up;
double Rm_corr_down;
// standard loop parameters
long long count;
double enter;
double BCL;
double BCL_cutoff;