Example #1
0
void AIFGroup::init()
{
	e_rest = -70e-3;
	e_rev = -80e-3;
	thr_rest = -50e-3;
	dthr = 100e-3;
	tau_thr = 2e-3;
	tau_mem = 20e-3;
	tau_ampa = 5e-3;
	tau_gaba = 10e-3;
	tau_nmda = 100e-3;

	set_ampa_nmda_ratio(1.0);

	tau_adapt1 = 0.1;
	dg_adapt1  = 0.1;
 
	calculate_scale_constants();

	t_leak = get_state_vector("t_leak");
	t_exc  =  get_state_vector("t_exc");
	t_inh  = get_state_vector("t_inh");
	g_adapt1 = get_state_vector("g_adapt1");

	clear();
}
Example #2
0
void IF2Group::init()
{
	e_rest = -70e-3;
	e_rev = -80e-3;
	e_nmda_onset = -65e-3;
	nmda_slope = 1.0/60e-3;
	thr_rest = -50e-3;
	dthr = 100e-3;
	tau_thr = 5e-3;
	tau_mem = 20e-3;
	tau_ampa = 5e-3;
	tau_gaba = 10e-3;
	tau_nmda = 100e-3;

	set_ampa_nmda_ratio(1.0);

	calculate_scale_constants();
	
	// thr = auryn_vector_float_alloc (size); 
	
	t_leak = get_state_vector("t_leak");
	t_exc =  get_state_vector("t_exc");
	t_inh = get_state_vector("t_inh");
	nmda_opening = get_state_vector("nmda_opening");

	clear();
}
Example #3
0
void TIFGroup::init()
{
	e_rest = -60e-3;
	e_rev = -80e-3;
	thr = -50e-3;
	tau_ampa = 5e-3;
	tau_gaba = 10e-3;
	tau_mem = 20e-3;
	refractory_time = (unsigned short) (5.e-3/dt);

	calculate_scale_constants();
	
	ref = gsl_vector_ushort_alloc (get_vector_size()); 
	bg_current = get_state_vector("bg_current");

	t_g_ampa = gsl_vector_float_ptr ( g_ampa , 0 ); 
	t_g_gaba = gsl_vector_float_ptr ( g_gaba , 0 ); 
	t_bg_cur = gsl_vector_float_ptr ( bg_current , 0 ); 
	t_mem = gsl_vector_float_ptr ( mem , 0 ); 
	t_ref = gsl_vector_ushort_ptr ( ref , 0 ); 

	clear();

}
Example #4
0
void TIFGroup::init()
{
	e_rest = -60e-3;
	e_rev = -80e-3;
	thr = -50e-3;
	tau_ampa = 5e-3;
	tau_gaba = 10e-3;
	tau_mem = 20e-3;
	set_refractory_period(5e-3);

	calculate_scale_constants();
	
	ref = auryn_vector_ushort_alloc (get_vector_size()); 
	bg_current = get_state_vector("bg_current");

	t_g_ampa = auryn_vector_float_ptr ( g_ampa , 0 ); 
	t_g_gaba = auryn_vector_float_ptr ( g_gaba , 0 ); 
	t_bg_cur = auryn_vector_float_ptr ( bg_current , 0 ); 
	t_mem = auryn_vector_float_ptr ( mem , 0 ); 
	t_ref = auryn_vector_ushort_ptr ( ref , 0 ); 

	clear();

}
Example #5
0
void AIFGroup::set_tau_adapt(AurynFloat taua)
{
	tau_adapt1 = taua;
	calculate_scale_constants();
}
Example #6
0
void AIFGroup::set_tau_nmda(AurynFloat taum)
{
	tau_nmda = taum;
	calculate_scale_constants();
}
Example #7
0
void TIFGroup::set_tau_gaba(AurynFloat taum)
{
	tau_gaba = taum;
	calculate_scale_constants();
}
Example #8
0
void IF2Group::set_tau_ampa(AurynFloat taum)
{
	tau_ampa = taum;
	calculate_scale_constants();
}