GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
InitSparseConnectivitySnippet::FixedProbabilityBase Class Referenceabstract

#include <initSparseConnectivitySnippet.h>

Inheritance diagram for InitSparseConnectivitySnippet::FixedProbabilityBase:
InitSparseConnectivitySnippet::Base Snippet::Base InitSparseConnectivitySnippet::FixedProbability InitSparseConnectivitySnippet::FixedProbabilityNoAutapse

Public Member Functions

virtual std::string getRowBuildCode () const override=0
 
 SET_ROW_BUILD_STATE_VARS ({{"prevJ", {"int", -1}}})
 
virtual StringVec getParamNames () const override
 Gets names of of (independent) model parameters. More...
 
virtual DerivedParamVec getDerivedParams () const override
 
 SET_CALC_MAX_ROW_LENGTH_FUNC ([](unsigned int numPre, unsigned int numPost, const std::vector< double > &pars) { const double quantile=pow(0.9999, 1.0/(double) numPre);return binomialInverseCDF(quantile, numPost, pars[0]);})
 
 SET_CALC_MAX_COL_LENGTH_FUNC ([](unsigned int numPre, unsigned int numPost, const std::vector< double > &pars) { const double quantile=pow(0.9999, 1.0/(double) numPost);return binomialInverseCDF(quantile, numPre, pars[0]);})
 
- Public Member Functions inherited from InitSparseConnectivitySnippet::Base
virtual NameTypeValVec getRowBuildStateVars () const
 
virtual CalcMaxLengthFunc getCalcMaxRowLengthFunc () const
 Get function to calculate the maximum row length of this connector based on the parameters and the size of the pre and postsynaptic population. More...
 
virtual CalcMaxLengthFunc getCalcMaxColLengthFunc () const
 Get function to calculate the maximum column length of this connector based on the parameters and the size of the pre and postsynaptic population. More...
 
virtual StringPairVec getExtraGlobalParams () const
 
- Public Member Functions inherited from Snippet::Base
virtual ~Base ()
 

Additional Inherited Members

- Public Types inherited from InitSparseConnectivitySnippet::Base
typedef std::function< unsigned int(unsigned int, unsigned int, const std::vector< double > &)> CalcMaxLengthFunc
 
- Public Types inherited from Snippet::Base
typedef std::function< double(const std::vector< double > &, double)> DerivedParamFunc
 
typedef std::vector< std::string > StringVec
 
typedef std::vector< std::pair< std::string, std::string > > StringPairVec
 
typedef std::vector< std::pair< std::string, std::pair< std::string, double > > > NameTypeValVec
 
typedef std::vector< std::pair< std::string, DerivedParamFunc > > DerivedParamVec
 

Detailed Description

Base class for snippets which initialise connectivity with a fixed probability of a synapse existing between a pair of pre and postsynaptic neurons.

Member Function Documentation

◆ getDerivedParams()

virtual DerivedParamVec InitSparseConnectivitySnippet::FixedProbabilityBase::getDerivedParams ( ) const
inlineoverridevirtual

Gets names of derived model parameters and the function objects to call to Calculate their value from a vector of model parameter values

Reimplemented from Snippet::Base.

◆ getParamNames()

virtual StringVec InitSparseConnectivitySnippet::FixedProbabilityBase::getParamNames ( ) const
inlineoverridevirtual

Gets names of of (independent) model parameters.

Reimplemented from Snippet::Base.

◆ getRowBuildCode()

virtual std::string InitSparseConnectivitySnippet::FixedProbabilityBase::getRowBuildCode ( ) const
overridepure virtual

◆ SET_CALC_MAX_COL_LENGTH_FUNC()

InitSparseConnectivitySnippet::FixedProbabilityBase::SET_CALC_MAX_COL_LENGTH_FUNC ( [] (unsigned int numPre, unsigned int numPost, const std::vector< double > &pars) { const double quantile=pow(0.9999, 1.0/(double) numPost);return binomialInverseCDF(quantile, numPre, pars[0]);}  )

◆ SET_CALC_MAX_ROW_LENGTH_FUNC()

InitSparseConnectivitySnippet::FixedProbabilityBase::SET_CALC_MAX_ROW_LENGTH_FUNC ( [] (unsigned int numPre, unsigned int numPost, const std::vector< double > &pars) { const double quantile=pow(0.9999, 1.0/(double) numPre);return binomialInverseCDF(quantile, numPost, pars[0]);}  )

◆ SET_ROW_BUILD_STATE_VARS()

InitSparseConnectivitySnippet::FixedProbabilityBase::SET_ROW_BUILD_STATE_VARS ( {{"prevJ", {"int", -1}}}  )

The documentation for this class was generated from the following file: