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

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

#include <Sequence/WeightingSchemes.hpp>

Inheritance diagram for Sequence::WeightingScheme3:
Sequence::GranthamWeights3 Sequence::Unweighted3

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 3 positions

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

Definition at line 93 of file WeightingSchemes.hpp.


Member Function Documentation

Sequence::WeightingScheme3::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::GranthamWeights3, and Sequence::Unweighted3.

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

Implemented in Sequence::GranthamWeights3, and Sequence::Unweighted3.


The documentation for this class was generated from the following file:

Generated on Mon Jul 12 15:22:06 2010 for libsequence by  doxygen 1.6.1