Victor
 All Data Structures Functions Variables Friends Pages
Pearson.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 __Pearson_H__
19 #define __Pearson_H__
20 
21 #include <Profile.h>
22 #include <ScoringFunction.h>
23 
24 namespace Victor { namespace Align2{
25 
38  class Pearson : public ScoringFunction {
39  public:
40 
41  // CONSTRUCTORS:
42 
44  Pearson(Profile *pro1, Profile *pro2);
45 
47  Pearson(const Pearson &orig);
48 
50  virtual ~Pearson();
51 
52 
53  // OPERATORS:
54 
56  Pearson& operator =(const Pearson &orig);
57 
58 
59  // PREDICATES:
60 
62  virtual double scoringSeq(int i, int j);
63 
64 
65  // MODIFIERS:
66 
68  virtual void copy(const Pearson &orig);
69 
71  virtual Pearson* newCopy();
72 
73 
74  protected:
75 
76 
77  private:
78 
79  // ATTRIBUTES:
80 
81  Profile *pro1;
82  Profile *pro2;
83  double p1[20];
84  double p2[20];
85 
86  };
87 
88 }} // namespace
89 
90 #endif
Pearson & operator=(const Pearson &orig)
Assignment operator.
Definition: Pearson.cc:75
virtual double scoringSeq(int i, int j)
Calculate scores to create matrix values.
Definition: Pearson.cc:91
Calculate a frequency profile or PSSM.
Definition: Profile.h:35
virtual ~Pearson()
Destructor.
Definition: Pearson.cc:64
Calculate scores for profile to profile alignment using Pearson's correlation coefficient.
Definition: Pearson.h:38
Base class for scoring functions.
Definition: ScoringFunction.h:31
Pearson(Profile *pro1, Profile *pro2)
Default constructor.
Definition: Pearson.cc:40
virtual Pearson * newCopy()
Construct a new "deep copy" of this object.
Definition: Pearson.cc:143
virtual void copy(const Pearson &orig)
Copy orig object to this object ("deep copy").
Definition: Pearson.cc:122