Spike
Loading...
Searching...
No Matches
SusceptibilitySimulationLin.h
Go to the documentation of this file.
1
5#ifndef SPIKE_SUSCEPTIBILITYSIMULATIONLIN_H
6#define SPIKE_SUSCEPTIBILITYSIMULATIONLIN_H
7
9
10namespace Spike {
11
17private:
18 std::vector<std::complex<double>> suscept_lin;
19
20public:
25 explicit SusceptibilitySimulationLin(const std::string &input_file);
26
34 void calculate(size_t trials) override;
35
40 void add_to_suscepts(const std::vector<std::complex<double>> &tmp_lin);
41
46 [[nodiscard]] size_t get_size_lin() const { return suscept_lin.size(); };
47
52 [[nodiscard]] const std::vector<std::complex<double>> &
54 return suscept_lin;
55 };
56};
57
58} // namespace Spike
59
60#endif // SPIKE_SUSCEPTIBILITYSIMULATIONLIN_H
A simulation where we measure the linear (first order) susceptibility of an integrate-and-fire neuron...
Definition SusceptibilitySimulationLin.h:16
const std::vector< std::complex< double > > & get_suscept_lin() const
Returns the susceptibility vector.
Definition SusceptibilitySimulationLin.h:53
SusceptibilitySimulationLin(const std::string &input_file)
Constructs susceptibility simulation from .ini file.
Definition SusceptibilitySimulationLin.cpp:6
void add_to_suscepts(const std::vector< std::complex< double > > &tmp_lin)
Adds the susceptibility tmp_lin to suscept_lin.
Definition SusceptibilitySimulationLin.cpp:27
void calculate(size_t trials) override
Calculates the linear susceptibility for a given number of trials. Each time the white noise signal i...
Definition SusceptibilitySimulationLin.cpp:11
size_t get_size_lin() const
Returns the size of the susceptibility vector.
Definition SusceptibilitySimulationLin.h:46
Implements a prototype simulation during which we measure the susceptibility of an integrate-and-fire...
Definition SusceptibilitySimulation.h:19