Spike
Loading...
Searching...
No Matches
SusceptibilitySimulationNonlin.h
Go to the documentation of this file.
1
5#ifndef SPIKE_SUSCEPTIBILITYSIMULATIONNONLIN_H
6#define SPIKE_SUSCEPTIBILITYSIMULATIONNONLIN_H
7
9
10namespace Spike {
11
17private:
18 std::vector<std::vector<std::complex<double>>>
19 suscept_nonlin;
20
21public:
26 explicit SusceptibilitySimulationNonlin(const std::string &input_file);
27
28
36 void calculate(size_t trials) override;
37
42 void add_to_suscepts(
43 const std::vector<std::vector<std::complex<double>>> &tmp_nonlin);
44
45
50 [[nodiscard]] size_t get_size_nonlin() const {
51 return suscept_nonlin.size();
52 };
53
54
59 [[nodiscard]] const std::vector<std::vector<std::complex<double>>> &
61 return suscept_nonlin;
62 };
63};
64
65} // namespace Spike
66
67#endif // SPIKE_SUSCEPTIBILITYSIMULATIONNONLIN_H
A simulation where we measure the nonlinear (second order) susceptibility of an integrate-and-fire ne...
Definition SusceptibilitySimulationNonlin.h:16
void calculate(size_t trials) override
Calculates the nonlinear susceptibility for a given number of trials. Each time the white noise signa...
Definition SusceptibilitySimulationNonlin.cpp:16
void add_to_suscepts(const std::vector< std::vector< std::complex< double > > > &tmp_nonlin)
Adds the susceptibility matrix tmp_nonlin to suscept_nonlin.
Definition SusceptibilitySimulationNonlin.cpp:31
size_t get_size_nonlin() const
Returns the size of the susceptibility matrix.
Definition SusceptibilitySimulationNonlin.h:50
const std::vector< std::vector< std::complex< double > > > & get_suscept_nonlin() const
Returns the susceptibility matrix.
Definition SusceptibilitySimulationNonlin.h:60
SusceptibilitySimulationNonlin(const std::string &input_file)
Constructs susceptibility simulation from .ini file.
Definition SusceptibilitySimulationNonlin.cpp:7
Implements a prototype simulation during which we measure the susceptibility of an integrate-and-fire...
Definition SusceptibilitySimulation.h:19