00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <Sequence/Unweighted.hpp>
00025
00026 namespace Sequence
00027 {
00028 void Unweighted2::Calculate(const std::string &codon1, const std::string &codon2) const
00034 {
00035 __weights[0] = 0.5;
00036 __weights[1] = 0.5;
00037 }
00038
00039 double* Unweighted2::weights(void) const
00043 {
00044 return __weights;
00045 }
00046
00047 void Unweighted3::Calculate(const std::string &codon1, const std::string &codon2) const
00053 {
00054 __weights[0] = 1.0/6.0;
00055 __weights[1] = 1.0/6.0;
00056 __weights[2] = 1.0/6.0;
00057 __weights[3] = 1.0/6.0;
00058 __weights[4] = 1.0/6.0;
00059 __weights[5] = 1.0/6.0;
00060 }
00061
00062 double* Unweighted3::weights(void) const
00066 {
00067 return __weights;
00068 }
00069 }