23#ifndef CORRELOMATRIX_DETECTOR_H
24#define CORRELOMATRIX_DETECTOR_H
202 void update(
Time const&,
const long,
const long )
override;
216 Spike_(
long timestep,
double weight,
long receptorchannel )
314 return receptor_type;
329 const bool reset_required = ptmp.
set( d, *
this,
this );
333 if ( reset_required )
Dictionary class for interface to Python and C++ API.
Definition dictionary.h:213
virtual void get_status(Dictionary &) const
Definition device.h:179
virtual void set_status(const Dictionary &)
Definition device.h:185
Base class for all NEST network objects.
Definition node.h:99
std::string get_name() const
Return class name.
Definition node.cpp:105
Common properties of all pseudo-recording devices.
Definition pseudo_recording_device.h:72
Event for spike information.
Definition event.h:418
Class to convert times from one representation to another.
Definition nest_timeconverter.h:42
Definition nest_time.h:135
static Time get_resolution()
Definition nest_time.h:325
Exception to be thrown if the specified receptor type does not exist in the node.
Definition exceptions.h:417
Definition correlomatrix_detector.h:158
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition correlomatrix_detector.h:308
Parameters_ P_
Definition correlomatrix_detector.h:303
PseudoRecordingDevice device_
Definition correlomatrix_detector.h:302
void init_state_() override
Configure state variables depending on runtime information.
Definition correlomatrix_detector.cpp:252
void calibrate_time(const TimeConverter &tc) override
Re-calculate time-based properties of the node.
Definition correlomatrix_detector.cpp:386
void init_buffers_() override
Configure persistent internal data structures.
Definition correlomatrix_detector.cpp:258
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition correlomatrix_detector.cpp:265
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition correlomatrix_detector.h:326
void update(Time const &, const long, const long) override
Advance the state of the node in time through the given interval.
Definition correlomatrix_detector.cpp:276
std::deque< Spike_ > SpikelistType
Definition correlomatrix_detector.h:233
correlomatrix_detector()
Definition correlomatrix_detector.cpp:230
void handle(SpikeEvent &) override
Handle incoming spike events.
Definition correlomatrix_detector.cpp:281
bool has_proxies() const override
This device has proxies, so that it will receive spikes also from sources which live on other threads...
Definition correlomatrix_detector.h:169
State_ S_
Definition correlomatrix_detector.h:304
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition correlomatrix_detector.h:318
std::string get_element_type() const override
Return the element type of the node.
Definition correlomatrix_detector.h:175
virtual size_t handles_test_event(SpikeEvent &, size_t receptor_type)
Check if the node can handle a particular event and receptor type.
Definition node.cpp:271
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition node.cpp:265
const std::string recorder("recorder")
Namespace for the NEST simulation kernel.
Definition beta_normalization_factor.h:33
void register_correlomatrix_detector(const std::string &name)
Definition correlomatrix_detector.cpp:43
Declarations for base class Node.
Definition correlomatrix_detector.h:240
Time delta_tau_
width of correlation histogram bins
Definition correlomatrix_detector.h:241
Parameters_()
Sets default parameter values.
Definition correlomatrix_detector.cpp:53
Parameters_ & operator=(const Parameters_ &)
Definition correlomatrix_detector.cpp:84
void get(Dictionary &) const
Store current values in dictionary.
Definition correlomatrix_detector.cpp:114
Time get_default_delta_tau()
Definition correlomatrix_detector.h:340
size_t N_channels_
number of channels
Definition correlomatrix_detector.h:245
Time tau_max_
maximum time difference of events to detect
Definition correlomatrix_detector.h:242
Time Tstart_
start of recording
Definition correlomatrix_detector.h:243
bool set(const Dictionary &, const correlomatrix_detector &, Node *node)
Set values from dictionary.
Definition correlomatrix_detector.cpp:132
Time Tstop_
end of recording //!< end of recording
Definition correlomatrix_detector.h:244
Spike structure to store in the deque of recently received events.
Definition correlomatrix_detector.h:211
long receptor_channel_
Definition correlomatrix_detector.h:214
Spike_(long timestep, double weight, long receptorchannel)
Definition correlomatrix_detector.h:216
bool operator>(const Spike_ &second) const
Greater operator needed for insertion sort.
Definition correlomatrix_detector.h:227
double weight_
Definition correlomatrix_detector.h:213
long timestep_
Definition correlomatrix_detector.h:212
Definition correlomatrix_detector.h:276
std::vector< std::vector< std::vector< double > > > covariance_
Weighted covariance matrix.
Definition correlomatrix_detector.h:282
std::vector< long > n_events_
spike counters
Definition correlomatrix_detector.h:277
SpikelistType incoming_
incoming spikes, sorted
Definition correlomatrix_detector.h:278
State_()
initialize default state
Definition correlomatrix_detector.cpp:100
std::vector< std::vector< std::vector< long > > > count_covariance_
Unweighted covariance matrix.
Definition correlomatrix_detector.h:286
void get(Dictionary &) const
Definition correlomatrix_detector.cpp:124
void set(const Dictionary &, const Parameters_ &, bool, Node *node)
Definition correlomatrix_detector.cpp:194
void reset(const Parameters_ &)
Definition correlomatrix_detector.cpp:199