Piecewise linear additive spike response. More...
#include <PLAdditiveKernelSpikeResponse.h>
Classes | |
| class | CompareResponseKernel |
| class | ResponseKernel |
Public Member Functions | |
| PLAdditiveKernelSpikeResponse () | |
| Default Constructor: initializes the object without a response kernel. | |
| PLAdditiveKernelSpikeResponse (const SharedArray< double > &resp_shape_amplitudes, const SharedArray< double > &resp_shape_timepoints) | |
| Constructs a spike response with given response kernel. | |
| virtual | ~PLAdditiveKernelSpikeResponse () |
| Destructor: deletes all active spike responses. | |
| void | setResponseKernel (const SharedArray< double > &resp_shape_amplitudes, const SharedArray< double > &resp_shape_timepoints) |
| Sets the response kernel. | |
| virtual unsigned | numInputPorts () const |
| virtual unsigned | numOutputPorts () const |
| virtual PortType | getInputPortType (port_id_t p) const |
| virtual PortType | getOutputPortType (port_id_t p) const |
| virtual void | reset (SimContext &sim_ctxt) |
| virtual double | getSlope () |
| virtual void | postAddedInNetwork (EvSimNetwork &net, EvSimObject::ID self) |
| virtual void | eventHit (SimContext &sim_info, Time time, port_id_t port) |
| virtual void | updateState (SimContext &sim_info, Time time, update_id_t upd_id) |
Protected Attributes | |
|
std::priority_queue < ResponseKernel *, std::vector< ResponseKernel * > , CompareResponseKernel > | response_queue |
| const vector< double > * | resp_shape_amplitudes |
| const vector< double > * | resp_shape_timepoints |
| Time | cur_time |
| double | slope |
Piecewise linear additive spike response.
The shape of the spike response is defined by an array of amplitudes
and an array of time spans
. The PSP amplitude at time
after a spike was triggered is
, that at time
is
. The PSP amplitudes are linearly interpolated between
and
. The PSP amplitudes between
and
are constant
. If a spike occurs while the response is active the overlapping spike responses are added up.
| PLAdditiveKernelSpikeResponse::PLAdditiveKernelSpikeResponse | ( | ) | [inline] |
Default Constructor: initializes the object without a response kernel.
Use the setResponseKernel() to set up the response kernel
| PLAdditiveKernelSpikeResponse::PLAdditiveKernelSpikeResponse | ( | const SharedArray< double > & | resp_shape_amplitudes, | |
| const SharedArray< double > & | resp_shape_timepoints | |||
| ) | [inline] |
Constructs a spike response with given response kernel.
| resp_shape_amplitudes | A shared array holding the amplitude values | |
| resp_shape_timepoints | A shared array holding the time span of the given amplitude value |
| void PLAdditiveKernelSpikeResponse::setResponseKernel | ( | const SharedArray< double > & | resp_shape_amplitudes, | |
| const SharedArray< double > & | resp_shape_timepoints | |||
| ) | [inline] |
Sets the response kernel.
| resp_shape_amplitudes | A shared array holding the amplitude values | |
| resp_shape_timepoints | A shared array holding the time span of the given amplitude value |
1.7.1