예제 #1
0
  def __init__(self, name, cm=0.281, tau_refrac=0.1, v_spike=-40.0, v_reset=-70.6, v_rest=-70.6, tau_m=9.3667, i_offset=0.0, a=4.0, b=0.0805, delta_T=2.0,tau_w=144.0,v_thresh=-50.4,e_rev_E=0.0, tau_syn_E=5.0, e_rev_I=-80.0, tau_syn_I=5.0, N=1, tau_psc=5.0, connectivity=None, spike_delta=30,scale=0.5):
    """
    AdEx Constructor


    """
    Base_Population.__init__(self, name, N, tau_psc, connectivity, spike_delta, v_reset,scale)
    self.cm         = cm         # Capacitance of the membrane in nF
    self.tau_refrac = tau_refrac # Duration of refractory period in ms.
    self.v_spike    = v_spike    # Spike detection threshold in mV.
    self.v_reset    = v_reset    # Reset value for V_m after a spike. In mV.
    self.v_rest     = v_rest     # Resting membrane potential (Leak reversal potential) in mV.
    self.tau_m      = tau_m      # Membrane time constant in ms
    self.i_offset   = i_offset   # Offset current in nA
    self.a          = a          # Subthreshold adaptation conductance in nS.
    self.b          = b          # Spike-triggered adaptation in nA
    self.delta_T    = delta_T    # Slope factor in mV
    self.tau_w      = tau_w      # Adaptation time constant in ms
    self.v_thresh   = v_thresh   # Spike initiation threshold in mV
    self.e_rev_E    = e_rev_E    # Excitatory reversal potential in mV.
    self.tau_syn_E  = tau_syn_E  # Decay time constant of excitatory synaptic conductance in ms.
    self.e_rev_I    = e_rev_I    # Inhibitory reversal potential in mV.
    self.tau_syn_I  = tau_syn_I  # Decay time constant of the inhibitory synaptic conductance in ms.
    #state variables
    #self.v is already present
    self.w = np.ones(N)
예제 #2
0
 def __init__(self, name, a=0.02, b=0.2, c=-65, d=6, v0=-70, u0=None, N=10, tau_psc=5.0, connectivity=None, spike_delta=30, scale=1.0):
   Base_Population.__init__(self, name, N, tau_psc, connectivity, spike_delta, v0, scale)
   self.a  = a
   self.b  = b
   self.c  = c
   self.d  = d
   self.v  = np.ones(self.N) * v0
   self.u  = np.ones(self.N) * u0 if u0 is not None else np.ones(self.N) * b*v0
   self.du = lambda a, b, v, u: a*(b*v - u)
   self.v_thresh = 30 #mV
예제 #3
0
    def __init__(self,
                 name,
                 cm=0.281,
                 tau_refrac=0.1,
                 v_spike=-40.0,
                 v_reset=-70.6,
                 v_rest=-70.6,
                 tau_m=9.3667,
                 i_offset=0.0,
                 a=4.0,
                 b=0.0805,
                 delta_T=2.0,
                 tau_w=144.0,
                 v_thresh=-50.4,
                 e_rev_E=0.0,
                 tau_syn_E=5.0,
                 e_rev_I=-80.0,
                 tau_syn_I=5.0,
                 N=1,
                 tau_psc=5.0,
                 connectivity=None,
                 spike_delta=30,
                 scale=0.5):
        """
    AdEx Constructor


    """
        Base_Population.__init__(self, name, N, tau_psc, connectivity,
                                 spike_delta, v_reset, scale)
        self.cm = cm  # Capacitance of the membrane in nF
        self.tau_refrac = tau_refrac  # Duration of refractory period in ms.
        self.v_spike = v_spike  # Spike detection threshold in mV.
        self.v_reset = v_reset  # Reset value for V_m after a spike. In mV.
        self.v_rest = v_rest  # Resting membrane potential (Leak reversal potential) in mV.
        self.tau_m = tau_m  # Membrane time constant in ms
        self.i_offset = i_offset  # Offset current in nA
        self.a = a  # Subthreshold adaptation conductance in nS.
        self.b = b  # Spike-triggered adaptation in nA
        self.delta_T = delta_T  # Slope factor in mV
        self.tau_w = tau_w  # Adaptation time constant in ms
        self.v_thresh = v_thresh  # Spike initiation threshold in mV
        self.e_rev_E = e_rev_E  # Excitatory reversal potential in mV.
        self.tau_syn_E = tau_syn_E  # Decay time constant of excitatory synaptic conductance in ms.
        self.e_rev_I = e_rev_I  # Inhibitory reversal potential in mV.
        self.tau_syn_I = tau_syn_I  # Decay time constant of the inhibitory synaptic conductance in ms.
        #state variables
        #self.v is already present
        self.w = np.ones(N)