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