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

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

#include <SusceptibilitySimulationNonlin.h>

Public Member Functions

 SusceptibilitySimulationNonlin (const std::string &input_file)
 Constructs susceptibility simulation from .ini file.
 
void calculate (size_t trials) override
 Calculates the nonlinear 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 matrix suscept_nonlin.
 
void add_to_suscepts (const std::vector< std::vector< std::complex< double > > > &tmp_nonlin)
 Adds the susceptibility matrix tmp_nonlin to suscept_nonlin.
 
size_t get_size_nonlin () const
 Returns the size of the susceptibility matrix.
 
const std::vector< std::vector< std::complex< double > > > & get_suscept_nonlin () const
 Returns the susceptibility matrix.
 
- 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 nonlinear (second order) susceptibility of an integrate-and-fire neuron.

Constructor & Destructor Documentation

◆ SusceptibilitySimulationNonlin()

Spike::SusceptibilitySimulationNonlin::SusceptibilitySimulationNonlin ( 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::SusceptibilitySimulationNonlin::add_to_suscepts ( const std::vector< std::vector< std::complex< double > > > & tmp_nonlin)

Adds the susceptibility matrix tmp_nonlin to suscept_nonlin.

Parameters
tmp_nonlinsusceptibility matrix

◆ calculate()

void Spike::SusceptibilitySimulationNonlin::calculate ( size_t trials)
overridevirtual

Calculates the nonlinear 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 matrix suscept_nonlin.

Parameters
trialsnumber of trials.

Implements Spike::SusceptibilitySimulation.

◆ get_size_nonlin()

size_t Spike::SusceptibilitySimulationNonlin::get_size_nonlin ( ) const
inline

Returns the size of the susceptibility matrix.

Returns
size of susceptibility matrix

◆ get_suscept_nonlin()

const std::vector< std::vector< std::complex< double > > > & Spike::SusceptibilitySimulationNonlin::get_suscept_nonlin ( ) const
inline

Returns the susceptibility matrix.

Returns
susceptibility matrix

The documentation for this class was generated from the following files: