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

40 lines
1.2 KiB
C++

// $Id: fromCountTableComponentToDistance2USSRV.h 962 2006-11-07 15:13:34Z privmane $
#ifndef ___FROM_COUNT_TABLE_COMPONENT_TO_DISTANCE_2_USSRV
#define ___FROM_COUNT_TABLE_COMPONENT_TO_DISTANCE_2_USSRV
#include "definitions.h"
#include "countTableComponent.h"
#include "stochasticProcess.h"
#include "ussrvModel.h"
#include "likeDist2USSRV.h"
static const MDOUBLE startingGuessForTreeBrLen = 0.029;
class fromCountTableComponentToDistance2USSRV {
public:
explicit fromCountTableComponentToDistance2USSRV(
const countTableComponentGam& ctcBase,
const countTableComponentHom& ctcSSRV,
const ussrvModel& model,
MDOUBLE toll,
MDOUBLE brLenIntialGuess);// =startingGuessForTreeBrLen
void computeDistance();// return the likelihood
MDOUBLE getDistance() { return _distance;} // return the distance.
MDOUBLE getLikeDistance() { return _likeDistance;} // return the distance.
private:
const ussrvModel & _model;
const countTableComponentGam& _ctcBase;
const countTableComponentHom& _ctcSSRV;
MDOUBLE _toll;
MDOUBLE _distance;
MDOUBLE _likeDistance;
// int alphabetSize() {return _ctc.alphabetSize();}
};
#endif //___FROM_COUNT_TABLE_COMPONENT_TO_DISTANCE_2_USSRV