mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 01:00:25 +08:00
19 lines
629 B
C++
19 lines
629 B
C++
// $Id: fromCountTableComponentToDistanceProp.cpp 962 2006-11-07 15:13:34Z privmane $
|
|
|
|
#include "fromCountTableComponentToDistanceProp.h"
|
|
#include "likeDistProp.h"
|
|
|
|
fromCountTableComponentToDistanceProp::fromCountTableComponentToDistanceProp(
|
|
const vector<countTableComponentGam>& ctc,
|
|
const vector<stochasticProcess> &sp,
|
|
const MDOUBLE toll,
|
|
const MDOUBLE brLenIntialGuess ) : _sp(sp), _ctc(ctc) {
|
|
_distance =brLenIntialGuess;
|
|
_toll = toll;
|
|
}
|
|
|
|
void fromCountTableComponentToDistanceProp::computeDistance() {
|
|
likeDistProp likeDist1(alphabetSize(),_sp,_toll);
|
|
_distance = likeDist1.giveDistance(_ctc,_likeDistance);
|
|
}
|