CEBL  2.1
max_var.hpp
Go to the documentation of this file.
1 /*
2 * CEBL : CSU EEG Brain-Computer Interface Lab
3 *
4 * Author: Jeshua Bratman - jeshuabratman@gmail.com
5 *
6 * This file is part of CEBL.
7 *
8 * CEBL is free software; you can redistribute it and/or modify it.
9 * We only ask that if you use our code that you cite the source in
10 * your project or publication.
11 *
12 * EEG Group (www.cs.colostate.edu/eeg)
13 * Department of Computer Science
14 * Colorado State University
15 *
16 */
17 
18 #ifndef max_var_H
19 #define max_var_H
20 //relative to cebl source dir
21 #include "../model/Classifier.hpp"
22 
23 namespace CEBL
24 {
25  class max_var : public Classifier
26  {
27  private:
28 
31 
33  void save(boost::archive::text_oarchive &ar, const unsigned int &version=0) const;
35  void load(boost::archive::text_iarchive &ar, const unsigned int &version=0);
36 
37  double thresh;
38 
39  public:
41  max_var() { trained = true; };
42  ~max_var() {};
43 
45  std::map<std::string, CEBL::Param> getParamsList();
46  void setParamsList( std::map<std::string, CEBL::Param> &);
47 
49  void train(const EEGTrainingData &);
50 
52  std::vector<int> use(const ublas::matrix<double> &) const;
53  };
54 }
55 #endif