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

#include <clizExtractor.h>

Public Member Functions

 Extractor (ExtractorHandle iHandle, std::vector< Save * > &iInputSaveVec, std::vector< Save * > &iOutputSaveVec, std::vector< IndicesStruct > iIndicesOut)
 
void extractFeatures (float *spikes, unsigned int nspk, float *features)
 
void threadFunc ()
 
 ~Extractor ()
 

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: Extractor The Extractor extracts features from spike shapes. We implemented a Haar Wavelet decomposition (Quian Quiroga et al. 2004) of the whitened spike shapes.

Constructor & Destructor Documentation

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

Module: Extractor Constructor

Here is the call graph for this function:

cliz::Extractor::~Extractor ( )
inline

Member Function Documentation

void cliz::Extractor::extractFeatures ( float *  spikes,
unsigned int  nspk,
float *  features 
)

Module: Extractor Extracting features (Haar Wavelet decomposition)

Parameters
[in]spikesArray of raw spikes
[in]nspkNumber of spikes
[out]featuresWhitened spikes (shorter and realigned to the peak)

Here is the call graph for this function:

Here is the caller graph for this function:

void cliz::Extractor::threadFunc ( )

Module: Extractor Worker thread

Here is the call graph for this function:

Here is the caller graph for this function:


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