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

37 lines
1.1 KiB
C++

// $Id: likelihoodComputation2USSRV.h 962 2006-11-07 15:13:34Z privmane $
#ifndef ___LIKELIHOOD_COMPUTATION_2_USSRV
#define ___LIKELIHOOD_COMPUTATION_2_USSRV
#include "definitions.h"
#include "computePijComponent.h"
#include "sequenceContainer.h"
#include "suffStatComponent.h"
#include "ussrvModel.h"
#include "tree.h"
#include "computeUpAlg.h"
#include "likelihoodComputation.h"
#include <cmath>
#include <cassert>
namespace likelihoodComputation2USSRV {
MDOUBLE getTreeLikelihoodAllPosAlphTheSame(const tree& et,
const sequenceContainer& sc,const sequenceContainer& baseSc,
const ussrvModel& model,const Vdouble * const weights=0);
MDOUBLE getTreeLikelihoodFromUp2(const tree& et,
const sequenceContainer& sc,
const sequenceContainer& baseSc,
const ussrvModel & model,
const suffStatGlobalGam& cupBase,
const suffStatGlobalHom& cupSSRV,
VdoubleRep& posLike, // fill this vector with each position likelihood but without the weights.
const Vdouble * weights=0);
};
#endif // ___LIKELIHOOD_COMPUTATION_2_USSRV