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

#include <clizSelector.h>

Public Member Functions

 Selector (SelectorHandle iHandle, std::vector< Save * > &iInputSaveVec, std::vector< Save * > &iOutputSaveVec, std::vector< IndicesStruct > iIndicesOut)
 
void selectFeatures (int numNewSpikes)
 
void threadFunc ()
 
 ~Selector ()
 

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: Selector Select features based on their distribution (KS value). Determines KS values by using the Lilliefors modification of the Kolmogorov-Smirnov test (0 <= KS <= 1). Additionally the standard deviation is calculated to normalize features later.

Constructor & Destructor Documentation

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

Module: Selector Constructor

Here is the call graph for this function:

cliz::Selector::~Selector ( )
inline

Here is the call graph for this function:

Member Function Documentation

void cliz::Selector::selectFeatures ( int  numNewSpikes)

Module: Selector Calculates standard deviation and KS-values (weights) of all features and selects the X best features (X=numFeatures)

Here is the call graph for this function:

Here is the caller graph for this function:

void cliz::Selector::threadFunc ( )

Module: Selector 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: