libsequence  1.9.5
Kimura80.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 
45 #ifndef KIMURA80_H
46 #define KIMURA80_H
47 
48 namespace Sequence
49  {
50  class Seq;
51  class Kimura80
52  {
53  private:
54  unsigned num_Ts, num_Tv;
55  size_t seqlen; //total sequence length
56  size_t sites_compared; //number of ungapped sites in the data
57  void Compute (const Sequence::Seq *seq1, const Sequence::Seq *seq2);
58  double divergence, P, Q;
59  public:
60  explicit Kimura80 (const Sequence::Seq * seqa,const Sequence::Seq * seqb);
61  double K() const;
62  size_t sites (void) const;
63  };
64 }
65 #endif
Kimura80(const Sequence::Seq *seqa, const Sequence::Seq *seqb)
Definition: Kimura80.cc:41
Abstract interface to sequence objects.
Definition: Seq.hpp:46
Kimura&#39;s 2-parameter distance.
Definition: Kimura80.hpp:51
The namespace in which this library resides.
size_t sites(void) const
Definition: Kimura80.cc:123
double K() const
Definition: Kimura80.cc:109