#include <synapses.hpp>
cypress::SynapseBase::SynapseBase |
( |
std::initializer_list< Real > |
parameters | ) |
|
|
inline |
cypress::SynapseBase::SynapseBase |
( |
std::vector< Real > |
parameters | ) |
|
|
inlineexplicit |
virtual cypress::SynapseBase::~SynapseBase |
( |
| ) |
|
|
virtualdefault |
const Real* cypress::SynapseBase::begin |
( |
| ) |
const |
|
inline |
Returns an iterator allowing to iterate over the parameter vector.
void cypress::SynapseBase::check_parameter_size |
( |
| ) |
|
|
inlineprotected |
const Real* cypress::SynapseBase::end |
( |
| ) |
const |
|
inline |
Returns an iterator allowing to iterate over the parameter vector.
virtual bool cypress::SynapseBase::learning |
( |
| ) |
const |
|
inlinevirtual |
Create a shared pointer from a reference. Checks the name of the synapse to create the correct type. This is to avoid creating a copy, which is then of type SynapseBase and member functions pointing to wrong name, parameter_names,...
- Parameters
-
synapse | Reference to the synapse object to be copied and administered by a shared pointer |
- Returns
- Shared pointer to a copy of synapse
virtual const std::string cypress::SynapseBase::name |
( |
| ) |
const |
|
inlinevirtual |
Real cypress::SynapseBase::operator[] |
( |
size_t |
i | ) |
const |
|
inline |
Returns a read-only reference at the i-th element in the parameter vector.
virtual const std::vector<Real>& cypress::SynapseBase::parameter_defaults |
( |
| ) |
const |
|
inlinevirtual |
Optional<size_t> cypress::SynapseBase::parameter_index |
( |
const std::string & |
name | ) |
const |
|
inline |
Resolves the given parameter name into a parameter index.
virtual const std::vector<std::string>& cypress::SynapseBase::parameter_names |
( |
| ) |
const |
|
inlinevirtual |
virtual const std::vector<std::string>& cypress::SynapseBase::parameter_units |
( |
| ) |
const |
|
inlinevirtual |
const std::vector<Real>& cypress::SynapseBase::parameters |
( |
| ) |
const |
|
inline |
void cypress::SynapseBase::parameters |
( |
const std::vector< Real > & |
params | ) |
|
|
inline |
void cypress::SynapseBase::set |
( |
size_t |
idx, |
|
|
Real |
value |
|
) |
| |
|
inline |
Sets the parameter with the given index to the specified value.
- Parameters
-
idx | is the parameter that should be updated. |
value | is the value the parameter should be set to. |
size_t cypress::SynapseBase::size |
( |
| ) |
const |
|
inline |
Returns the size of the parameter vector. Aborts if the population is non-uniform.
bool cypress::SynapseBase::m_learning = false |
|
protected |
std::vector<Real> cypress::SynapseBase::m_params |
|
protected |
The documentation for this class was generated from the following file: