Victor
 All Data Structures Functions Variables Friends Pages
DotPOdds.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 __DotPOdds_H__
19 #define __DotPOdds_H__
20 
21 #include <Profile.h>
22 #include <ScoringFunction.h>
23 
24 namespace Victor { namespace Align2{
25 
43  class DotPOdds : public ScoringFunction {
44  public:
45 
46  // CONSTRUCTORS:
47 
49  DotPOdds(Profile *pro1, Profile *pro2);
50 
52  DotPOdds(const DotPOdds &orig);
53 
55  virtual ~DotPOdds();
56 
57 
58  // OPERATORS:
59 
61  DotPOdds& operator =(const DotPOdds &orig);
62 
63 
64  // PREDICATES:
65 
67  virtual double scoringSeq(int i, int j);
68 
69 
70  // MODIFIERS:
71 
73  virtual void copy(const DotPOdds &orig);
74 
76  virtual DotPOdds* newCopy();
77 
78 
79  protected:
80 
81 
82  private:
83 
84  // ATTRIBUTES:
85 
86  Profile *pro1;
87  Profile *pro2;
88  double p1[20];
89  double p2[20];
90 
91  };
92 
93 }} // namespace
94 
95 #endif
virtual double scoringSeq(int i, int j)
Calculate scores to create matrix values.
Definition: DotPOdds.cc:98
Calculate a frequency profile or PSSM.
Definition: Profile.h:35
virtual ~DotPOdds()
Destructor.
Definition: DotPOdds.cc:71
virtual DotPOdds * newCopy()
Construct a new "deep copy" of this object.
Definition: DotPOdds.cc:149
DotPOdds & operator=(const DotPOdds &orig)
Assignment operator.
Definition: DotPOdds.cc:82
virtual void copy(const DotPOdds &orig)
Copy orig object to this object ("deep copy").
Definition: DotPOdds.cc:127
DotPOdds(Profile *pro1, Profile *pro2)
Default constructor.
Definition: DotPOdds.cc:45
Calculate scores for profile to profile alignment using dot product method.
Definition: DotPOdds.h:43
Base class for scoring functions.
Definition: ScoringFunction.h:31