synapse-app-sdk
C++ SDK for Synapse Apps
Loading...
Searching...
No Matches
synapse::SpikeDetectorWrapper< DetectorType > Class Template Reference

Template wrapper for spike detector implementations. More...

#include <base_spike_detector.hpp>

Inheritance diagram for synapse::SpikeDetectorWrapper< DetectorType >:
Collaboration diagram for synapse::SpikeDetectorWrapper< DetectorType >:

Public Member Functions

 SpikeDetectorWrapper (DetectorType detector)
template<typename... Args>
void setup (Args &&...args)
SpikeEventdetect (const float sample, const uint64_t frame_timestamp, const uint32_t channel_id) override
 Process a new sample and detect spikes.
void reset () override
 Reset the detector state.

Detailed Description

template<typename DetectorType>
class synapse::SpikeDetectorWrapper< DetectorType >

Template wrapper for spike detector implementations.

Member Function Documentation

◆ detect()

template<typename DetectorType>
SpikeEvent * synapse::SpikeDetectorWrapper< DetectorType >::detect ( const float sample,
const uint64_t frame_timestamp,
const uint32_t channel_id )
inlineoverridevirtual

Process a new sample and detect spikes.

Parameters
sampleThe incoming broadband sample
frame_timestampTimestamp of the current frame
channel_idChannel ID
Returns
SpikeEvent if a spike is detected, nullptr otherwise

Implements synapse::BaseSpikeDetector.

◆ reset()

template<typename DetectorType>
void synapse::SpikeDetectorWrapper< DetectorType >::reset ( )
inlineoverridevirtual

Reset the detector state.

Implements synapse::BaseSpikeDetector.


The documentation for this class was generated from the following file: