Skip to content
Snippets Groups Projects
Select Git revision
  • 491a9d1fa64821d2aedf2551edef4d37fe4ba6fc
  • master default protected
  • tut_ring_allen
  • docs_furo
  • docs_reorder_cable_cell
  • docs_graphviz
  • docs_rtd_dev
  • ebrains_mirror
  • doc_recat
  • docs_spike_source
  • docs_sim_sample_clar
  • docs_pip_warn
  • github_template_updates
  • docs_fix_link
  • cv_default_and_doc_clarification
  • docs_add_numpy_req
  • readme_zenodo_05
  • install_python_fix
  • install_require_numpy
  • typofix_propetries
  • docs_recipe_lookup
  • v0.10.0
  • v0.10.1
  • v0.10.0-rc5
  • v0.10.0-rc4
  • v0.10.0-rc3
  • v0.10.0-rc2
  • v0.10.0-rc
  • v0.9.0
  • v0.9.0-rc
  • v0.8.1
  • v0.8
  • v0.8-rc
  • v0.7
  • v0.6
  • v0.5.2
  • v0.5.1
  • v0.5
  • v0.4
  • v0.3
  • v0.2.2
41 results

test_point.cpp

Blame
  • STDPSynapse.cpp 1.84 KiB
    /**********************************************************************
    ** This program is part of 'MOOSE', the
    ** Messaging Object Oriented Simulation Environment.
    **           Copyright (C) 2003-2009 Upinder S. Bhalla. and NCBS
    ** It is made available under the terms of the
    ** GNU Lesser General Public License version 2.1
    ** See the file COPYING.LIB for the full notice.
    **********************************************************************/
    
    #include "header.h"
    #include "SynHandlerBase.h"
    #include "Synapse.h"
    #include "STDPSynapse.h"
    
    const Cinfo* STDPSynapse::initCinfo()
    {
    
    	static string doc[] = 
    	{
    		"Name", "STDPSynapse",
    		"Author", "Aditya Gilra",
    		"Description", "Subclass of Synapse including variables for Spike Timing Dependent Plasticity (STDP).",
    	};
    
        static ValueFinfo< STDPSynapse, double > aPlus(
            "aPlus", 
            "aPlus is a pre-synaptic variable that keeps a decaying 'history' of previous pre-spike(s)"
            "and is used to update the synaptic weight when a post-synaptic spike appears."
            "It determines the t_pre < t_post (pre before post) part of the STDP window.",
    		&STDPSynapse::setAPlus,
    		&STDPSynapse::getAPlus
        );
    
    	static Finfo* synapseFinfos[] = {
    		&aPlus,		// Field
    	};
    
    	static Dinfo< STDPSynapse > dinfo;
    	static Cinfo STDPSynapseCinfo (
    		"STDPSynapse",
    		Synapse::initCinfo(),
    		synapseFinfos,
    		sizeof( synapseFinfos ) / sizeof ( Finfo* ),
    		&dinfo,
    		doc,
    		sizeof( doc ) / sizeof( string ),
    		true // This is a FieldElement.
    	);
    
    	return &STDPSynapseCinfo;
    }
    
    static const Cinfo* STDPSynapseCinfo = STDPSynapse::initCinfo();
    
    STDPSynapse::STDPSynapse() : handler_ (0)
    {
        aPlus_ = 0.0;
    }
    
    void STDPSynapse::setHandler( SynHandlerBase* h )
    {
    	handler_ = h;
        Synapse::setHandler( h );
    }
    
    void STDPSynapse::setAPlus( const double v )
    {
    	aPlus_ = v;
    }
    
    double STDPSynapse::getAPlus() const
    {
    	return aPlus_;
    }