libsequence  1.9.5
TwoSubs.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 TWOSUBS_H
25 #define TWOSUBS_H
26 #include <Sequence/SeqEnums.hpp>
28 #include <string>
29 #include <memory>
58 namespace Sequence
59 {
60  class RedundancyCom95;
61  class TwoSubs
62  {
63  private:
64  struct TwoSubsImpl;
65  std::unique_ptr<TwoSubsImpl> impl;
66  public:
67  explicit TwoSubs(void);
68  void operator() (const RedundancyCom95 & sitesObj,
69  const std::string &cod1, const std::string &cod2,
70  const Sequence::WeightingScheme2 *weights2);
71  ~TwoSubs (void);
72  double P0 (void) const;
73  double P2S (void) const;
74  double P2V (void) const;
75  double P4 (void) const;
76  double Q0 (void) const;
77  double Q2S (void) const;
78  double Q2V (void) const;
79  double Q4 (void) const;
80  };
81 }
82 #endif
double Q2S(void) const
Definition: TwoSubs.cc:204
abstract interface to weighting schemes when codons differ at 2 positions
The namespace in which this library resides.
double Q0(void) const
Definition: TwoSubs.cc:195
double P2S(void) const
Definition: TwoSubs.cc:168
double P2V(void) const
Definition: TwoSubs.cc:177
abstract interface to weighting schemes when codons differ at 2 positions
void operator()(const RedundancyCom95 &sitesObj, const std::string &cod1, const std::string &cod2, const Sequence::WeightingScheme2 *weights2)
Definition: TwoSubs.cc:58
double P4(void) const
Definition: TwoSubs.cc:186
Calculate redundancy of a genetic code using Comeron&#39;s counting scheme.
double Q2V(void) const
Definition: TwoSubs.cc:213
Definition of enumeration types.
Deal with codons differing at 2 positions.
Definition: TwoSubs.hpp:61
double P0(void) const
Definition: TwoSubs.cc:159
double Q4(void) const
Definition: TwoSubs.cc:222