Cypress  1.0
C++ Spiking Neural Network Simulation Framework
spike_time_generators.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 
27 #ifndef CYPRESS_CORE_SPIKE_TIME_GENERATORS
28 #define CYPRESS_CORE_SPIKE_TIME_GENERATORS
29 
30 #include <cypress/core/types.hpp>
31 #include <vector>
32 
33 namespace cypress {
34 namespace spikes {
35 
36 std::vector<Real> poisson(Real t_start, Real t_end, Real rate);
37 
38 std::vector<Real> constant_interval(Real t_start, Real t_end, Real interval,
39  Real sigma = 0.0);
40 
41 std::vector<Real> constant_frequency(Real t_start, Real t_end, Real frequency,
42  Real sigma = 0.0);
43 } // namespace spikes
44 } // namespace cypress
45 
46 #endif /* CYPRESS_CORE_SPIKE_TIME_GENERATORS */
double Real
Definition: types.hpp:56
std::vector< Real > constant_interval(Real t_start, Real t_end, Real interval, Real sigma=0.0)
Definition: brainscales_lib.hpp:39
std::vector< Real > poisson(Real t_start, Real t_end, Real rate)
std::vector< Real > constant_frequency(Real t_start, Real t_end, Real frequency, Real sigma=0.0)