action recognizer with theremin

Dependencies:   mbed

Revision:
0:b9ac53c439ed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Output.h	Wed Sep 14 13:42:46 2011 +0000
@@ -0,0 +1,45 @@
+/*
+ *  Output.h
+ *  Theremi
+ *
+ *  Created by peccu on 11/09/12.
+ *  Copyright 2011 __MyCompanyName__. All rights reserved.
+ *
+ */
+
+#ifndef _INC_OUTPUT
+#define _INC_OUTPUT
+#include <fstream>
+
+class Output {
+private:
+#ifdef SAVE
+    /*
+    FILE *fp,*fft;
+    */
+    std::ofstream fp,fft;
+#endif
+    int windowSize, newCount, countNumber;
+    int *counts,*data;
+    int readSize;
+    int loopCounter;
+    int division;
+    int prev;
+    float ave,var;
+public:
+    Output(void);
+    void reset(void);
+    void init(void);
+    void fopen(void);
+    void fclose(void);
+    bool iterate(void);
+    void write(float plus, float minus);
+    void count(float plus, float minus);
+    void calcAveVar(void);
+    void writeTest(void);
+    void scale(void);
+    void predict(void);
+    ~Output();
+};
+
+#endif