EukPhylo/PTL2/Scripts-GRID/guidance.v2.02/libs/phylogeny/fromCountTableComponentToDistanceProp.cpp
Katzlab dd76ab1d12 Added PTL2 Scripts
These are PTL2 files from Auden 2/9
2023-02-14 11:20:52 -05:00

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);
}