23#ifndef CORRELOSPINMATRIX_DETECTOR_H
24#define CORRELOSPINMATRIX_DETECTOR_H
186 void update(
Time const&,
const long,
const long )
override;
310 return receptor_type;
325 const bool reset_required = ptmp.
set( d, *
this,
this );
329 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
virtual SignalType receives_signal() const
Definition node.h:974
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 correlospinmatrix_detector.h:139
void handle(SpikeEvent &) override
Handle incoming spike events.
Definition correlospinmatrix_detector.cpp:292
void calibrate_time(const TimeConverter &tc) override
Re-calculate time-based properties of the node.
Definition correlospinmatrix_detector.cpp:476
void init_buffers_() override
Configure persistent internal data structures.
Definition correlospinmatrix_detector.cpp:269
void pre_run_hook() override
Re-calculate dependent parameters of the node.
Definition correlospinmatrix_detector.cpp:276
void set_status(const Dictionary &) override
Change properties of the node according to the entries in the dictionary.
Definition correlospinmatrix_detector.h:322
size_t handles_test_event(SpikeEvent &, size_t) override
Check if the node can handle a particular event and receptor type.
Definition correlospinmatrix_detector.h:304
SignalType receives_signal() const override
Definition correlospinmatrix_detector.h:337
PseudoRecordingDevice device_
Definition correlospinmatrix_detector.h:298
Parameters_ P_
Definition correlospinmatrix_detector.h:299
void init_state_() override
Configure state variables depending on runtime information.
Definition correlospinmatrix_detector.cpp:263
State_ S_
Definition correlospinmatrix_detector.h:300
void get_status(Dictionary &) const override
Export properties of the node by setting entries in the status dictionary.
Definition correlospinmatrix_detector.h:314
bool has_proxies() const override
This device has proxies, so that it will receive spikes also from sources which live on other threads...
Definition correlospinmatrix_detector.h:150
correlospinmatrix_detector()
Definition correlospinmatrix_detector.cpp:241
std::string get_element_type() const override
Return the element type of the node.
Definition correlospinmatrix_detector.h:156
std::deque< BinaryPulse_ > BinaryPulselistType
Definition correlospinmatrix_detector.h:217
void update(Time const &, const long, const long) override
Advance the state of the node in time through the given interval.
Definition correlospinmatrix_detector.cpp:287
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_correlospinmatrix_detector(const std::string &name)
Correlospinmatrix detector breaks with the persistence scheme as follows: the internal buffers for st...
Definition correlospinmatrix_detector.cpp:43
SignalType
enum type of signal conveyed by spike events of a node.
Definition nest_types.h:165
@ BINARY
Definition nest_types.h:168
Declarations for base class Node.
Structure to store in the deque of recently received events marked by beginning and end of the binary...
Definition correlospinmatrix_detector.h:195
long t_on_
Definition correlospinmatrix_detector.h:196
bool operator>(const BinaryPulse_ &second) const
Greater operator needed for insertion sort.
Definition correlospinmatrix_detector.h:211
BinaryPulse_(long timeon, long timeoff, long receptorchannel)
Definition correlospinmatrix_detector.h:200
long t_off_
Definition correlospinmatrix_detector.h:197
long receptor_channel_
Definition correlospinmatrix_detector.h:198
Definition correlospinmatrix_detector.h:224
Parameters_ & operator=(const Parameters_ &)
Definition correlospinmatrix_detector.cpp:84
bool set(const Dictionary &, const correlospinmatrix_detector &, Node *)
Set values from dictionary.
Definition correlospinmatrix_detector.cpp:131
Time get_default_delta_tau()
Definition correlospinmatrix_detector.h:343
void get(Dictionary &) const
Store current values in dictionary.
Definition correlospinmatrix_detector.cpp:115
Time Tstop_
end of recording
Definition correlospinmatrix_detector.h:228
Time Tstart_
start of recording
Definition correlospinmatrix_detector.h:227
size_t N_channels_
number of channels
Definition correlospinmatrix_detector.h:229
Time tau_max_
maximum time difference of events to detect
Definition correlospinmatrix_detector.h:226
Time delta_tau_
width of correlation histogram bins
Definition correlospinmatrix_detector.h:225
Parameters_()
Sets default parameter values.
Definition correlospinmatrix_detector.cpp:52
Definition correlospinmatrix_detector.h:260
void reset(const Parameters_ &)
Definition correlospinmatrix_detector.cpp:208
BinaryPulselistType incoming_
incoming binary pulses, sorted
Definition correlospinmatrix_detector.h:261
std::vector< long > last_change_
last time pointof change of neuron i
Definition correlospinmatrix_detector.h:278
State_()
initialize default state
Definition correlospinmatrix_detector.cpp:101
void get(Dictionary &) const
Definition correlospinmatrix_detector.cpp:125
size_t last_i_
rport of last event coming in (needed for decoding logic of binary events)
Definition correlospinmatrix_detector.h:266
bool tentative_down_
potentially a down transition (single spike received)
Definition correlospinmatrix_detector.h:273
void set(const Dictionary &, const Parameters_ &, bool, Node *)
Definition correlospinmatrix_detector.cpp:203
std::vector< bool > curr_state_
current state of neuron i
Definition correlospinmatrix_detector.h:275
Time t_last_in_spike_
time of last event coming in (needed for decoding logic of binary events)
Definition correlospinmatrix_detector.h:270
std::vector< std::vector< std::vector< long > > > count_covariance_
Unweighted covariance matrix.
Definition correlospinmatrix_detector.h:282