Victor
 All Data Structures Functions Variables Friends Pages
RankAnalyzer.h
1 /*
2  * This file is part of Victor.
3  *
4  * Victor is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Victor is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13 
14  * You should have received a copy of the GNU General Public License
15  * along with Victor. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 
19 #ifndef _RANKANALYZER_H_
20 #define _RANKANALYZER_H_
21 
22 // Includes:
23 #include <string>
24 #include <vector>
25 using namespace std;
26 namespace Victor { namespace Lobo {
27 
28  // Global constants, typedefs, etc. (to avoid):
29 
33  class RankAnalyzer {
34  public:
35 
36  // CONSTRUCTORS/DESTRUCTOR:
37  RankAnalyzer();
38  RankAnalyzer(const RankAnalyzer& orig);
39  virtual ~RankAnalyzer();
40 
41  // PREDICATES:
42  void printHeader();
43  void printCorrelation(char* intro, unsigned int index);
44  void printCorrelation(char* intro, vector<double> data);
45  void printTopXResults(unsigned int top, string topFile,
46  double maxScore = 1000.0);
47 
48  // MODIFIERS:
49  void load(istream& inFile, unsigned int select);
50  void calcStatistics();
51 
52  void copy(const RankAnalyzer& orig);
53 
54  // OPERATORS:
55 
56  // protected:
57 
58  // private:
59 
60  // HELPERS:
61 
62  // ATTRIBUTES:
63  static const unsigned int MAX_COL = 11;
64  static const unsigned int MAX_LOOP = 1000;
65 
66  double avg[MAX_COL];
67  double sd[MAX_COL];
68  vector< vector<double> > zScore; // Z-scores of the data ("col")
69  vector< vector<double> > col; // raw input data (i.e. "column x")
70  vector< vector<double> > result; // RMSD result, used to get Top X
71  vector< vector<double> > resScore; // score of the RMSD results
72  };
73 
74 }} // namespace
75 #endif //_RANKANALYZER_H_
76 
77 
This class implements functions to analyze the ranking output of lobo.
Definition: RankAnalyzer.h:33