All Classes Namespaces Files Functions Variables Typedefs Macros
cliz::Whitener Class Reference

#include <clizWhitener.h>

Public Member Functions

 Whitener (WhitenerHandle iHandle, std::vector< Save * > &iInputSaveVec, std::vector< Save * > &iOutputSaveVec, std::vector< IndicesStruct > &iIndicesOut)
 
void whitenRawSpikes (float *iRawSpikes, unsigned int nspk, float *oWhiteSpikes, float *oRawSpikes)
 
void threadFunc ()
 
 ~Whitener ()
 

Detailed Description

Modules Except for the Accumulator and the Communicator, all Modules share the same structure. For initialization, each Module needs a parameter handle, an std::vector of Saves for their input, an std::vector of Saves for their output and an std::vector of IndicesStructs to know which output Saves require which output. During initialization a worker thread is spawned that tries to receive input from all input Saves. Once one ChunkPtrStruct from each input Save was obtained, functions are called that perform the respective jobs of the module. For each output Save, based on the respective IndicesStruct, the data obtained from these functions is copied and a ChunkPtrStruct that holds a pointer to that data is pushed in the output Save.Module: Whitener To remove the autocorrelation introduced by noise, spike shapes are multiplied with the transpose of a whitening matrix and realigned to the peak. Autocorrelated noise is converted to white noise and euclidean distance can be a valid measure of separation

Constructor & Destructor Documentation

cliz::Whitener::Whitener ( WhitenerHandle  iHandle,
std::vector< Save * > &  iInputSaveVec,
std::vector< Save * > &  iOutputSaveVec,
std::vector< IndicesStruct > &  iIndicesOut 
)

Module: Whitener Constructor

Here is the call graph for this function:

cliz::Whitener::~Whitener ( )
inline

Member Function Documentation

void cliz::Whitener::threadFunc ( )

Module: Whitener Worker thread

Here is the call graph for this function:

Here is the caller graph for this function:

void cliz::Whitener::whitenRawSpikes ( float *  iRawSpikes,
unsigned int  nspk,
float *  oWhiteSpikes,
float *  oRawSpikes 
)

Module: Whitener Whitens the noise of the raw spike and realigns the spike to the peak.

Parameters
[in]iRawSpikesArray of raw spikes
[in]nspkNumber of spikes
[out]oWhiteSpikesWhitened spikes (shorter and realigned to the peak)
[out]oRawSpikesRaw spikes (shorter)

Here is the caller graph for this function:


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