libsequence  1.9.5

Weights paths by Grantham's distances for codons differing at 2 sites. More...

#include <Sequence/GranthamWeights.hpp>

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

Public Types

using weights2_t = std::array< double, 2 >
 

Public Member Functions

weights2_t operator() (const std::string &codon1, const std::string &codon2, Sequence::GeneticCodes genetic_code) const
 

Detailed Description

Weights paths by Grantham's distances for codons differing at 2 sites.

Definition at line 49 of file GranthamWeights.hpp.

Member Function Documentation

◆ operator()()

WeightingScheme2::weights2_t Sequence::GranthamWeights2::operator() ( const std::string &  codon1,
const std::string &  codon2,
Sequence::GeneticCodes  genetic_code 
) const
virtual

Calculate actually calculates the weights for each branch

Parameters
codon1a std::string of length 3 representing a sense codon
codon2a std::string of length 3 representing a sense codon

Implements Sequence::WeightingScheme2.

Definition at line 35 of file GranthamWeights.cc.


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