libsequence  1.9.5
SingleSub.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 SINGLESUB_H
25 #define SINGLESUB_H
26 
39 #include <string>
40 #include <memory>
41 namespace Sequence
42 {
43  class RedundancyCom95;
44 
45  class SingleSub
46  {
47  private:
48  struct SingleSubImpl;
49  std::unique_ptr<SingleSubImpl> impl;
50  public:
51  explicit SingleSub(void);
52  void operator()(const RedundancyCom95 & sitesObj,
53  const std::string &cod1,
54  const std::string &cod2);
55  ~SingleSub();
56  double P0(void) const;
57  double P2S(void) const;
58  double P2V(void) const;
59  double P4(void) const;
60  double Q0(void) const;
61  double Q2S(void) const;
62  double Q2V(void) const;
63  double Q4(void) const;
64  };
65 }
66 #endif
double P2S(void) const
Definition: SingleSub.cc:78
double Q0(void) const
Definition: SingleSub.cc:104
double Q2S(void) const
Definition: SingleSub.cc:113
double Q2V(void) const
Definition: SingleSub.cc:122
The namespace in which this library resides.
Deal with codons differing at 1 position.
Definition: SingleSub.hpp:45
double P0(void) const
Definition: SingleSub.cc:69
double P4(void) const
Definition: SingleSub.cc:96
double Q4(void) const
Definition: SingleSub.cc:131
double P2V(void) const
Definition: SingleSub.cc:87
Calculate redundancy of a genetic code using Comeron&#39;s counting scheme.
void operator()(const RedundancyCom95 &sitesObj, const std::string &cod1, const std::string &cod2)
Definition: SingleSub.cc:55