Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <transformation_util.hpp>
Public Member Functions | |
virtual | ~NeuronTypeTransformation () |
virtual TransformationProperties | properties () const |
virtual std::string | id () const =0 |
NetworkBase | transform (const NetworkBase &src, TransformationAuxData &aux) |
void | copy_results (const NetworkBase &src, NetworkBase &tar) const |
Protected Member Functions | |
const NeuronType * | src_type () |
const NeuronType * | tar_type () |
NetworkBase | do_transform (const NetworkBase &src, TransformationAuxData &) override |
virtual void | do_transform_parameters (const typename SourceType::Parameters &src, typename TargetType::Parameters tar)=0 |
virtual bool | do_dehomogenise_parameters (const typename SourceType::Parameters &) |
virtual void | do_transform_signals (const typename SourceType::Signals &src, typename TargetType::Signals tar)=0 |
virtual void | do_copy_results (const NetworkBase &src, NetworkBase &tar) const |
Abstract base class which facilitates the implementation of neuron type transformations.
|
inlinevirtual |
|
inherited |
Copys the results from a transformed network to the original network.
|
protectedvirtualinherited |
Function called after the network was executed. This function should copy recorded data from the actually executed network to the target network. This function must be overriden if the network topology (including the neuron type) was changed by the transformation. Otherwise a default implementation is used.
|
inlineprotectedvirtual |
|
inlineoverrideprotectedvirtual |
Function which should be overriden by child classes. This function should perform the actual transformation an remember which changes were done.
src | is the network which should be modified. |
Implements cypress::Transformation.
|
protectedpure virtual |
|
protectedpure virtual |
|
pure virtualinherited |
Returns an id which can for example be used to explicitly disable certain transformations.
Implemented in cypress::transformations::CFToSA, cypress::transformations::IFFH1UnitScale, cypress::transformations::PoissonToSA, cypress::transformations::CFToCI, cypress::transformations::LIFToIFFH1, cypress::transformations::CIToCF, and cypress::transformations::IFFH1ToLIF.
|
inlinevirtualinherited |
Returns a structure describing the transformation, e.g. whether it is lossy or the priority with which it should be applied.
Reimplemented in cypress::transformations::LIFToIFFH1.
|
inlineprotected |
|
inlineprotected |
|
inherited |
Performs the transformation on the given network instance.
src | is the network which should be modified. |
aux | is some auxiliary data which may be modified by the transformation. |