00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_CONFIDENCE_H
00020 #define MARSYAS_CONFIDENCE_H
00021
00022 #include "MarSystem.h"
00023
00024 #include <fstream>
00025 #include <iostream>
00026 #include <iomanip>
00027
00028
00029
00030 namespace Marsyas
00031 {
00041 class Confidence: public MarSystem
00042 {
00043 private:
00044 void addControls();
00045 void myUpdate(MarControlPtr sender);
00046
00047 realvec confidences_;
00048 mrs_natural count_;
00049 std::vector<std::string> labelNames_;
00050 bool print_;
00051 bool forcePrint_;
00052 mrs_natural write_;
00053 mrs_natural nbFrames_;
00054 mrs_real hopDuration_;
00055 std::ofstream outputFileSyn_;
00056 std::ofstream outputFileTran_;
00057 std::string lastLabel_;
00058 std::string oriName_;
00059
00060 mrs_natural predictions_;
00061
00062 MarControlPtr ctrl_memSize_;
00063 MarControlPtr ctrl_nLabels_;
00064
00065
00066 public:
00067 Confidence(std::string name);
00068 Confidence(const Confidence& a);
00069
00070 ~Confidence();
00071 MarSystem* clone() const;
00072
00073 void myProcess(realvec& in, realvec& out);
00074 };
00075
00076 }
00077
00078 #endif
00079
00080