Cypress  1.0
C++ Spiking Neural Network Simulation Framework
spikey_if_cond_exp.hpp
Go to the documentation of this file.
1 /*
2  * Cypress -- C++ Spiking Neural Network Simulation Framework
3  * Copyright (C) 2016 Andreas Stöckel
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
29 #ifndef CYPRESS_TRANSFORMATIONS_SPIKEY_IF_COND_EXP_HPP
30 #define CYPRESS_TRANSFORMATIONS_SPIKEY_IF_COND_EXP_HPP
31 
33 
34 namespace cypress {
35 namespace transformations {
40  : public NeuronTypeTransformation<IfFacetsHardware1, IfCondExp> {
41 protected:
43  IfCondExpParameters tar) override;
44 
46  IfCondExpSignals tar) override;
47 
48 public:
49  std::string id() const override { return "IfFacetsHardware1ToIfCondExp"; }
50 
52 };
53 
59  : public NeuronTypeTransformation<IfCondExp, IfFacetsHardware1> {
60 protected:
62  IfFacetsHardware1Parameters tar) override;
63 
64  void do_transform_signals(const IfCondExpSignals &src,
65  IfFacetsHardware1Signals tar) override;
66 
67 public:
68  std::string id() const override { return "IfCondExpToIfFacetsHardware1"; }
69 
71  {
73  res.cost = 100;
74  res.lossy = true;
75  return res;
76  }
78 };
79 
86 protected:
88  TransformationAuxData &aux) override;
89 
90 public:
91  std::string id() const override { return "IFFH1UnitScale"; }
92 
94 };
95 }
96 }
97 
98 #endif /* CYPRESS_TRANSFORMATIONS_SPIKEY_IF_COND_EXP_HPP */
Definition: transformation.hpp:59
std::string id() const override
Definition: spikey_if_cond_exp.hpp:68
Definition: transformation.hpp:90
bool lossy
Definition: transformation.hpp:71
TransformationProperties properties() const override
Definition: spikey_if_cond_exp.hpp:70
Definition: spikey_if_cond_exp.hpp:39
Definition: transformation.hpp:77
Definition: neurons.hpp:402
std::string id() const override
Definition: spikey_if_cond_exp.hpp:49
~IFFH1ToLIF()
Definition: spikey_if_cond_exp.hpp:51
Definition: spikey_if_cond_exp.hpp:58
Definition: neurons.hpp:433
void do_transform_signals(const IfFacetsHardware1Signals &src, IfCondExpSignals tar) override
NetworkBase do_transform(const NetworkBase &src, TransformationAuxData &) override
Definition: transformation_util.hpp:44
std::string id() const override
Definition: spikey_if_cond_exp.hpp:91
Definition: network_base.hpp:116
Definition: spikey_if_cond_exp.hpp:85
size_t cost
Definition: transformation.hpp:64
Definition: neurons.hpp:367
~LIFToIFFH1()
Definition: spikey_if_cond_exp.hpp:77
Definition: brainscales_lib.hpp:39
Definition: transformation_util.hpp:39
Definition: neurons.hpp:344
void do_transform_parameters(const IfFacetsHardware1Parameters &src, IfCondExpParameters tar) override
~IFFH1UnitScale()
Definition: spikey_if_cond_exp.hpp:93