Sequence::WeightingScheme2 Class Reference
[Classes and functions relating to pathway weighting for Ka/Ks]

abstract interface to weighting schemes when codons differ at 2 positions More...

#include <Sequence/WeightingSchemes.hpp>

Inheritance diagram for Sequence::WeightingScheme2:
Sequence::GranthamWeights2 Sequence::Unweighted2

List of all members.

Public Member Functions

virtual void Calculate (const std::string &codon1, const std::string &codon2) const =0
virtual double * weights (void) const =0

Detailed Description

abstract interface to weighting schemes when codons differ at 2 positions

Warning:
Before deriving classes from this base, please study the implementations of Sequence::TwoSubs. You should also study Sequence::GranthamWeights2 for an example of a class derived from this one

Definition at line 81 of file WeightingSchemes.hpp.


Member Function Documentation

Sequence::WeightingScheme2::Calculate ( const std::string &  codon1,
const std::string &  codon2 
) const [pure virtual]

Calculate actually calculates the weights for each branch

Parameters:
codon1 a std::string of length 3 representing a sense codon
codon2 a std::string of length 3 representing a sense codon

Implemented in Sequence::GranthamWeights2, and Sequence::Unweighted2.

Sequence::WeightingScheme2::weights ( void   )  const [pure virtual]
Returns:
a double * of size 6 (1 value for each branch)

Implemented in Sequence::GranthamWeights2, and Sequence::Unweighted2.


The documentation for this class was generated from the following file:
Generated on Thu Aug 11 13:22:05 2011 for libsequence by  doxygen 1.6.3