|
|||||||||||
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
dynamicglutamatesynapse.hGo to the documentation of this file.00001 00005 #ifndef _DYNAMICGLUTAMATESYNAPSE_H_ 00006 #define _DYNAMICGLUTAMATESYNAPSE_H_ 00007 00008 #include "glutamatesynapse.h" 00009 #include "spikingneuron.h" 00010 #include <math.h> 00011 00013 class DynamicGlutamateSynapse : public GlutamateSynapse { 00014 00015 DO_REGISTERING 00016 00017 public: 00018 00019 #include "dynamicsynapse.h" 00020 00021 public: 00022 DynamicGlutamateSynapse(void); 00023 virtual ~DynamicGlutamateSynapse(void); 00024 00025 virtual void reset(void); 00026 00028 virtual void stdpChangePSR(void) { 00029 if ( lastSpike > 0 ) { 00030 double isi = SimulationTime - lastSpike; 00031 r = 1 + (r*(1-u)-1)*exp(-isi/D); 00032 u = U + u*(1-U)*exp(-isi/F); 00033 } 00034 psr += ((fact_ampa*W/decay) * u * r); 00035 psr_nmda += ((fact_nmda*W/decay_nmda) * u * r); 00036 } 00037 00038 }; 00039 00040 #endif | |||||||||||
(C) 2003, Thomas Natschläger | last modified 07/10/2006 |