23#ifndef POISSON_GENERATOR_PS_H
24#define POISSON_GENERATOR_PS_H
135 void update(
Time const&,
const long,
const long )
override;
221 e.set_sender( *
this );
222 return target.handles_test_event( e, receptor_type );
227 e.set_sender( *
this );
228 const size_t p = target.handles_test_event( e, receptor_type );
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
"Callback request event" for use in Device.
Definition event.h:521
Base class for all NEST network objects.
Definition node.h:99
virtual void event_hook(DSSpikeEvent &)
Modify Event object parameters during event delivery.
Definition node.cpp:586
bool is_model_prototype() const
Returns true if node is model prototype.
Definition node.h:1226
Event for spike information.
Definition event.h:418
Base class for common properties of StimulationDevices.
Definition stimulation_device.h:154
void enforce_single_syn_type(synindex)
Throws IllegalConnection if synapse id differs from initial synapse id.
Definition stimulation_device.cpp:62
Type
Device type.
Definition stimulation_device.h:187
@ SPIKE_GENERATOR
Definition stimulation_device.h:189
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition stimulation_device.cpp:125
void get_status(Dictionary &d) const override
Export properties of the node by setting entries in the status dictionary.
Definition stimulation_device.cpp:168
Class to convert times from one representation to another.
Definition nest_timeconverter.h:42
Time from_old_tics(tic_t t_old) const
Converts a given number of tics with respect to old representation into a time object in current repr...
Definition nest_timeconverter.cpp:49
Definition nest_time.h:135
tic_t get_tics() const
Definition nest_time.h:474
static Time neg_inf()
Definition nest_time.h:427
Definition poisson_generator_ps.h:101
Parameters_ P_
Definition poisson_generator_ps.h:208
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition poisson_generator_ps.h:238
void init_state_() override
Configure state variables depending on runtime information.
Definition poisson_generator_ps.cpp:113
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition poisson_generator_ps.cpp:129
Buffers_ B_
Definition poisson_generator_ps.h:210
bool is_off_grid() const override
Returns true if the node sends/receives off-grid events.
Definition poisson_generator_ps.h:274
void update(Time const &, const long, const long) override
Update state.
Definition poisson_generator_ps.cpp:182
void set_data_from_stimulation_backend(std::vector< double > &input_param) override
Definition poisson_generator_ps.cpp:284
size_t send_test_event(Node &, size_t, synindex, bool) override
Send an event to the receiving_node passed as an argument.
Definition poisson_generator_ps.h:214
StimulationDevice::Type get_type() const override
Definition poisson_generator_ps.h:280
poisson_generator_ps()
Definition poisson_generator_ps.cpp:95
Variables_ V_
Definition poisson_generator_ps.h:209
void calibrate_time(const TimeConverter &tc) override
Re-calculate time-based properties of the node.
Definition poisson_generator_ps.h:267
void event_hook(DSSpikeEvent &) override
Send out spikes.
Definition poisson_generator_ps.cpp:210
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition poisson_generator_ps.h:245
void init_buffers_() override
Configure persistent internal data structures.
Definition poisson_generator_ps.cpp:119
const std::string rate("rate")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_poisson_generator_ps(const std::string &name)
Definition poisson_generator_ps.cpp:41
constexpr size_t invalid_port
Value for invalid connection port number.
Definition nest_types.h:141
size_t synindex
For enumerations of synapse types.
Definition nest_types.h:115
Definition poisson_generator_ps.h:171
std::vector< SpikeTime > next_spike_
Time of next spike represented as time stamp and offset, for each target.
Definition poisson_generator_ps.h:181
std::pair< Time, double > SpikeTime
Definition poisson_generator_ps.h:172
Store independent parameters of the model.
Definition poisson_generator_ps.h:150
double dead_time_
dead time [ms]
Definition poisson_generator_ps.h:152
size_t num_targets_
Number of targets.
Definition poisson_generator_ps.h:160
double rate_
process rate [spks/s]
Definition poisson_generator_ps.h:151
void get(Dictionary &) const
Store current values in dictionary.
Definition poisson_generator_ps.cpp:62
Parameters_()
Sets default parameter values.
Definition poisson_generator_ps.cpp:50
void set(const Dictionary &, Node *node)
Set values from dictionary.
Definition poisson_generator_ps.cpp:69
Definition poisson_generator_ps.h:187
Time t_min_active_
start of generator activity in slice
Definition poisson_generator_ps.h:201
exponential_distribution exp_dev_
random deviate generator
Definition poisson_generator_ps.h:189
double inv_rate_ms_
1000.0 / Parameters_.rate_
Definition poisson_generator_ps.h:188
Time t_max_active_
end of generator activity in slice
Definition poisson_generator_ps.h:202