Victor
 All Data Structures Functions Variables Friends Pages
ReverseScore.h
1 /* This file is part of Victor.
2 
3  Victor is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Victor is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with Victor. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 
18 #ifndef __ReverseScore_H__
19 #define __ReverseScore_H__
20 
21 #include <Align.h>
22 #include <Alignment.h>
23 #include <StatTools.h>
24 #include <algorithm>
25 #include <iostream>
26 #include <string>
27 #include <vector>
28 
29 namespace Victor { namespace Align2{
30 
36  class ReverseScore {
37  public:
38 
39  // CONSTRUCTORS:
40 
42  ReverseScore(Align *a);
43 
45  ReverseScore(const ReverseScore &orig);
46 
48  virtual ~ReverseScore();
49 
50 
51  // OPERATORS:
52 
54  ReverseScore& operator =(const ReverseScore &orig);
55 
56 
57  // MODIFIERS:
58 
60  virtual void copy(const ReverseScore &orig);
61 
63  double getZScore(double &forward, double &reverse, unsigned int n = 50);
64 
65 
66  protected:
67 
68  // ATTRIBUTES:
69 
70  Align *ali;
71  Align *inv;
72 
73 
74  private:
75 
76  };
77 
78 }} // namespace
79 
80 #endif