All Classes Namespaces Files Functions Variables Typedefs Macros
clizWhitener.h
Go to the documentation of this file.
1 // clizWhitener.h - ClusterLizard header file - Module: Whitener
2 
3 // Copyright (C) 2013, 2014 Simeon Knieling, M.Sc.
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 //
9 
10 //Whitener Class
11 
12 #pragma once
13 #ifndef _INCLUDE_CLIZWHITENER
14 #define _INCLUDE_CLIZWHITENER
15 
16 #include "clizSave.h"
17 
20 namespace cliz
21 {
22 
26  {
27  unsigned int detection;
28  unsigned int valuesperrawspike;
29  unsigned int valuesperspike;
30  unsigned int w_pre;
31  unsigned int w_post;
32  unsigned int w_pre_raw;
33  unsigned int w_post_raw;
34  unsigned int smoothingCount;
35  };
36 
50  class Whitener
51  {
52  private:
53  WhitenerHandle handle; //Parameter handle
54  std::vector<IndicesStruct> indicesOut; //Which Modules that receive output from this module need which output?
55  std::vector<Save*> inputSaveVec; //Input Saves
56  std::vector<Save*> outputSaveVec; //Output Saves
57  MemoryManager memMan;
58 
59  arma::Mat<float> *whiteningMat; //Whitening matrix
60 
61  public:
65  Whitener(WhitenerHandle iHandle, std::vector<Save*> &iInputSaveVec, std::vector<Save*> &iOutputSaveVec, std::vector<IndicesStruct> &iIndicesOut);
66 
74  void whitenRawSpikes(float *iRawSpikes, unsigned int nspk, float *oWhiteSpikes, float *oRawSpikes);
75 
79  void threadFunc();
80 
82  {
83 
84  };
85  };
86 }
87 
88 #endif
unsigned int w_post_raw
Definition: clizWhitener.h:33
~Whitener()
Definition: clizWhitener.h:81
Whitener(WhitenerHandle iHandle, std::vector< Save * > &iInputSaveVec, std::vector< Save * > &iOutputSaveVec, std::vector< IndicesStruct > &iIndicesOut)
Definition: clizWhitener.cpp:21
Definition: cliz.h:55
unsigned int w_pre_raw
Definition: clizWhitener.h:32
unsigned int w_pre
Definition: clizWhitener.h:30
unsigned int valuesperspike
Definition: clizWhitener.h:29
Definition: clizFunctions.h:268
Definition: clizWhitener.h:25
void whitenRawSpikes(float *iRawSpikes, unsigned int nspk, float *oWhiteSpikes, float *oRawSpikes)
Definition: clizWhitener.cpp:124
void threadFunc()
Definition: clizWhitener.cpp:34
unsigned int detection
Definition: clizWhitener.h:27
unsigned int smoothingCount
Definition: clizWhitener.h:34
Definition: clizWhitener.h:50
unsigned int w_post
Definition: clizWhitener.h:31
unsigned int valuesperrawspike
Definition: clizWhitener.h:28