23 #ifndef CORRELATION_DETECTOR_H
24 #define CORRELATION_DETECTOR_H
265 if (receptor_type < 0 || receptor_type > 1)
274 device_.get_status(d);
285 const bool reset_required = ptmp.
set(d, *
this);
287 stmp.
set(d, P_, reset_required);
289 device_.set_status(d);
void init_buffers_()
Private function to initialize the buffers of a node.
Definition: correlation_detector.cpp:212
Correlation detector class.
Definition: correlation_detector.h:133
double_t weight
Weight of a connection.
Definition: nest.h:170
const Name receptor_type("receptor_type")
Connection parameters.
Definition: nest_names.h:240
Definition: lockptrdatum.h:40
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
Declarations for base class Node.
State_()
initialize default state
Definition: correlation_detector.cpp:63
Base class for all pseudo recording devices.
Definition: pseudo_recording_device.h:73
PseudoRecordingDevice device_
Definition: correlation_detector.h:257
bool has_proxies() const
This device has proxies, so that it will receive spikes also from sources which live on other threads...
Definition: correlation_detector.h:145
port handles_test_event(SpikeEvent &, rport)
Check if the node can handle a particular event and receptor type.
Definition: correlation_detector.h:263
const Name element_type("element_type")
Node type.
Definition: nest_names.h:117
void init_state_(Node const &)
Private function to initialize the state of a node to model defaults.
Definition: correlation_detector.cpp:203
long_t rport
Connection port number to distinguish incoming connections, also called receiver port.
Definition: nest.h:147
std::deque< Spike_ > SpikelistType
Definition: correlation_detector.h:193
Time Tstop_
end of recording
Definition: correlation_detector.h:204
void calibrate()
Re-calculate dependent parameters of the node.
Definition: correlation_detector.cpp:218
void get_status(DictionaryDatum &) const
Definition: correlation_detector.h:272
void set_status(const DictionaryDatum &)
Definition: correlation_detector.h:282
const Name recorder("recorder")
Node type.
Definition: nest_names.h:245
void handle(SpikeEvent &)
Definition: correlation_detector.cpp:231
Time Tstart_
start of recording
Definition: correlation_detector.h:203
correlation_detector()
Definition: correlation_detector.cpp:177
Parameters_ P_
Definition: correlation_detector.h:258
Definition: nest_time.h:130
Spike structure to store in the deque of recently received events.
Definition: correlation_detector.h:175
std::string get_name() const
Return class name.
Definition: node.cpp:83
Definition: correlation_detector.h:199
double_t weight_
Definition: correlation_detector.h:178
Exception to be thrown if the specified receptor type does not exist in the node. ...
Definition: exceptions.h:254
Spike_(long_t timestep, double_t weight)
Definition: correlation_detector.h:180
long_t timestep_
Definition: correlation_detector.h:177
Time delta_tau_
width of correlation histogram bins
Definition: correlation_detector.h:201
std::vector< long_t > n_events_
spike counters
Definition: correlation_detector.h:231
void reset(const Parameters_ &)
Definition: correlation_detector.cpp:148
std::vector< double_t > histogram_
Weighted histogram.
Definition: correlation_detector.h:236
std::vector< double_t > histogram_correction_
used for Kahan summation algorithm
Definition: correlation_detector.h:237
void update(Time const &, const long_t, const long_t)
Bring the node from state $t$ to $t+n*dt$.
Definition: correlation_detector.cpp:228
Definition: correlation_detector.h:230
long_t port
Connection port number to distinguis outgoing connections.
Definition: nest.h:155
virtual void handle(SpikeEvent &e)
Handle incoming spike events.
Definition: node.cpp:198
double double_t
Double precision floating point numbers.
Definition: nest.h:93
std::vector< SpikelistType > incoming_
incoming spikes, sorted
Definition: correlation_detector.h:232
virtual port handles_test_event(SpikeEvent &, rport receptor_type)
Check if the node can handle a particular event and receptor type.
Definition: node.cpp:203
Definition: namedatum.h:90
Default types used by the NEST kernel.
Event for spike information.
Definition: event.h:320
Base class for all NEST network objects.
Definition: node.h:96
bool set(const DictionaryDatum &, const correlation_detector &)
Set values from dicitonary.
Definition: correlation_detector.cpp:92
State_ S_
Definition: correlation_detector.h:259
bool operator>(const Spike_ &second) const
Greater operator needed for insertion sort.
Definition: correlation_detector.h:187
void set(const DictionaryDatum &, const Parameters_ &, bool)
Definition: correlation_detector.cpp:131
long long_t
Integer number with at least 32 bit.
Definition: nest.h:96
Time tau_max_
maximum time difference of events to detect
Definition: correlation_detector.h:202
std::vector< long_t > count_histogram_
Unweighted histogram.
Definition: correlation_detector.h:241
Parameters_()
Sets default parameter values.
Definition: correlation_detector.cpp:38