2013-04-01から1ヶ月間の記事一覧

C++ compiling with Mac terminal

gcc -c main.cpp gcc -o main.cgi main.o -lstdc++ ./main.cgi

Synaptic Conductance(alpha function, Python)

import math import numpy as np import matplotlib.pyplot as plt def trapsyn(dt, Tfin, gsyn): VCl = -68; #mV Cm = 1; #micro F/cm^2 gCl = 0.3; #mS/cm^2 z = 2./dt; Nt = int(math.ceil(1 + Tfin / dt)); #number of time steps V = np.zeros((Nt, 1))…

Implementation of quadratic integrate-and-fire model with Runge-Kutta method

[:large]Neurdon #-*- coding:utf-8 -*- import numpy as np import matplotlib.pyplot as plt #quadratic integrate and fire model class IzhNeuron: def __init__(self, label, a, b, c, d, v0, u0=None): self.label = label self.a = a; self.b = b sel…