Spike
Loading...
Searching...
No Matches
Spike::SusceptibilitySimulationLin Class Reference

A simulation where we measure the linear (first order) susceptibility of an integrate-and-fire neuron. More...

#include <SusceptibilitySimulationLin.h>

Public Member Functions

 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.
 
- Public Member Functions inherited from Spike::SusceptibilitySimulation
 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 TimeFrameget_time_frame () const
 Returns the time frame.
 

Additional Inherited Members

- Protected Attributes inherited from Spike::SusceptibilitySimulation
TimeFrame time_frame
 time frame
 
SpikeTrain spike_train
 spike train
 
WhiteNoiseSignal signal
 white noise signal
 
std::unique_ptr< IFneuron
 neuron
 
size_t N_neurons
 number of neurons (trials)
 
double c
 noise split coefficient
 
double D
 total noise intensity
 

Detailed Description

A simulation where we measure the linear (first order) susceptibility of an integrate-and-fire neuron.

Constructor & Destructor Documentation

◆ SusceptibilitySimulationLin()

Spike::SusceptibilitySimulationLin::SusceptibilitySimulationLin ( const std::string & input_file)
explicit

Constructs susceptibility simulation from .ini file.

Parameters
input_filepath to .ini file

Member Function Documentation

◆ 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_linsusceptibility 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
trialsnumber of trials.

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: