A simulation where we measure the linear (first order) susceptibility of an integrate-and-fire neuron.
More...
#include <SusceptibilitySimulationLin.h>
|
| SusceptibilitySimulationLin (const std::string &input_file) |
| Constructs susceptibility simulation from .ini file.
|
|
void | calculate (size_t trials) override |
| Calculates the linear susceptibility for a given number of trials. Each time the white noise signal is generated again, the neuron produces a new spike train and the susceptibility is calculated. The result is then added (!) to the susceptibility vector suscept_lin.
|
|
void | add_to_suscepts (const std::vector< std::complex< double > > &tmp_lin) |
| Adds the susceptibility tmp_lin to suscept_lin.
|
|
size_t | get_size_lin () const |
| Returns the size of the susceptibility vector.
|
|
const std::vector< std::complex< double > > & | get_suscept_lin () const |
| Returns the susceptibility vector.
|
|
| SusceptibilitySimulation (const std::string &input_file) |
| Constructs susceptibility simulation from .ini file.
|
|
void | set_c (double c_new) |
| Sets a new noise split coefficient.
|
|
size_t | get_N_neurons () const |
| Returns the number of neurons (trials) for this simulation.
|
|
const TimeFrame & | get_time_frame () const |
| Returns the time frame.
|
|
|
TimeFrame | time_frame |
| time frame
|
|
SpikeTrain | spike_train |
| spike train
|
|
WhiteNoiseSignal | signal |
| white noise signal
|
|
std::unique_ptr< IF > | neuron |
| neuron
|
|
size_t | N_neurons |
| number of neurons (trials)
|
|
double | c |
| noise split coefficient
|
|
double | D |
| total noise intensity
|
|
A simulation where we measure the linear (first order) susceptibility of an integrate-and-fire neuron.
◆ SusceptibilitySimulationLin()
Spike::SusceptibilitySimulationLin::SusceptibilitySimulationLin |
( |
const std::string & | input_file | ) |
|
|
explicit |
Constructs susceptibility simulation from .ini file.
- Parameters
-
input_file | path to .ini file |
◆ add_to_suscepts()
void Spike::SusceptibilitySimulationLin::add_to_suscepts |
( |
const std::vector< std::complex< double > > & | tmp_lin | ) |
|
Adds the susceptibility tmp_lin to suscept_lin.
- Parameters
-
tmp_lin | susceptibility vector |
◆ calculate()
void Spike::SusceptibilitySimulationLin::calculate |
( |
size_t | trials | ) |
|
|
overridevirtual |
Calculates the linear susceptibility for a given number of trials. Each time the white noise signal is generated again, the neuron produces a new spike train and the susceptibility is calculated. The result is then added (!) to the susceptibility vector suscept_lin.
- Parameters
-
Implements Spike::SusceptibilitySimulation.
◆ get_size_lin()
size_t Spike::SusceptibilitySimulationLin::get_size_lin |
( |
| ) |
const |
|
inline |
Returns the size of the susceptibility vector.
- Returns
- size of susceptibility vector
◆ get_suscept_lin()
const std::vector< std::complex< double > > & Spike::SusceptibilitySimulationLin::get_suscept_lin |
( |
| ) |
const |
|
inline |
Returns the susceptibility vector.
- Returns
- susceptibility vector
The documentation for this class was generated from the following files: