libsequence  1.9.5
Grantham.hpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu
4 
5 Remove the brackets to email me.
6 
7 This file is part of libsequence.
8 
9 libsequence is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 libsequence is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 long with libsequence. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifndef GRANTHAM_H
25 #define GRANTHAM_H
26 
36 #include <limits>
37 
38 namespace Sequence
39  {
40  class Grantham
41  {
42  private:
43  double D[60][60];
44  const double stopweight;
45  public:
46  Grantham(const double stop = std::numeric_limits<double>::max());
47  double operator()(char aa1, char aa2) const;
48  };
49 }
50 #endif
The namespace in which this library resides.
Grantham&#39;s distances.
Definition: Grantham.hpp:40
double operator()(char aa1, char aa2) const
Definition: Grantham.cc:476