5#ifndef SPIKE_SUSCEPTIBILITYSIMULATION_H
6#define SPIKE_SUSCEPTIBILITYSIMULATION_H
9#include "Spike/Signal/WhiteNoiseSignal.h"
10#include "Spike/SpikeTrain/SpikeTrain.h"
11#include "Spike/TimeFrame/TimeFrame.h"
48 void set_c(
double c_new);
68 friend std::ostream &
operator<<(std::ostream &out,
A spike train for discretized times. For a given time discretization with time step dt,...
Definition SpikeTrain.h:18
Implements a prototype simulation during which we measure the susceptibility of an integrate-and-fire...
Definition SusceptibilitySimulation.h:19
double D
total noise intensity
Definition SusceptibilitySimulation.h:28
SusceptibilitySimulation(const std::string &input_file)
Constructs susceptibility simulation from .ini file.
Definition SusceptibilitySimulation.cpp:11
size_t N_neurons
number of neurons (trials)
Definition SusceptibilitySimulation.h:26
const TimeFrame & get_time_frame() const
Returns the time frame.
Definition SusceptibilitySimulation.h:60
double c
noise split coefficient
Definition SusceptibilitySimulation.h:27
TimeFrame time_frame
time frame
Definition SusceptibilitySimulation.h:21
virtual void calculate(size_t trials)=0
Calculates the susceptibility for a given number of trials.
friend std::ostream & operator<<(std::ostream &out, const SusceptibilitySimulation &suscept_sim)
Overloads the << operator so we can print a simulation.
Definition SusceptibilitySimulation.cpp:39
WhiteNoiseSignal signal
white noise signal
Definition SusceptibilitySimulation.h:23
std::unique_ptr< IF > neuron
neuron
Definition SusceptibilitySimulation.h:24
void set_c(double c_new)
Sets a new noise split coefficient.
Definition SusceptibilitySimulation.cpp:33
SpikeTrain spike_train
spike train
Definition SusceptibilitySimulation.h:22
size_t get_N_neurons() const
Returns the number of neurons (trials) for this simulation.
Definition SusceptibilitySimulation.h:54
A time frame with discrete time steps.
Definition TimeFrame.h:13
Implements a band limited white gaussian noise get_value.
Definition WhiteNoiseSignal.h:18