mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-27 23:10:25 +08:00
71 lines
2.2 KiB
C++
71 lines
2.2 KiB
C++
// $Id: semphySearchBestTree.h 6002 2009-03-20 19:39:03Z privmane $
|
|
|
|
#ifndef ___SEMPHY_SEARCH_BEST_TREE
|
|
#define ___SEMPHY_SEARCH_BEST_TREE
|
|
|
|
#include "alphabet.h"
|
|
#include "sequenceContainer.h"
|
|
#include "tree.h"
|
|
#include "stochasticProcess.h"
|
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
|
class semphySearchBestTree {
|
|
public:
|
|
explicit semphySearchBestTree(sequenceContainer& sc,
|
|
tree& startTree,
|
|
const tree* ctPtr,
|
|
stochasticProcess& sp,
|
|
ostream& out,
|
|
const int numOfRandomStart = 1,
|
|
const bool optimizeAlpha = false,
|
|
const double epsilonLikelihoodImprovement4alphaOptimiz = 0.001,
|
|
const double epsilonLikelihoodImprovement4BBL = 0.001,
|
|
const int maxIterationsBBL = 10,
|
|
const Vdouble * weights = NULL);
|
|
virtual ~semphySearchBestTree(){}
|
|
|
|
|
|
private:
|
|
MDOUBLE semphyBasicSearchBestTree(
|
|
sequenceContainer& sc,
|
|
tree& et,
|
|
const tree* ctPtr,
|
|
stochasticProcess& sp,
|
|
const bool optimizeAlpha = false,
|
|
const double epsilonLikelihoodImprovement4alphaOptimiz = 0.001,
|
|
const double epsilonLikelihoodImprovement4BBL = 0.001,
|
|
const int maxIterationsBBL = 10,
|
|
const Vdouble * weights = NULL);
|
|
MDOUBLE semphyBasicSearchBestTree(
|
|
sequenceContainer& sc,
|
|
tree& startTree,
|
|
const tree* ctPtr,
|
|
stochasticProcess& sp,
|
|
ostream& out,
|
|
const bool optimizeAlpha = false,
|
|
const double epsilonLikelihoodImprovement4alphaOptimiz = 0.001,
|
|
const double epsilonLikelihoodImprovement4BBL = 0.001,
|
|
const int maxIterationsBBL = 10,
|
|
const Vdouble * weights = NULL);
|
|
|
|
MDOUBLE semphyBasicSearchBestTreeManyRandomStarts(
|
|
sequenceContainer& sc,
|
|
tree& et,
|
|
const tree* ctPtr,
|
|
stochasticProcess& sp,
|
|
ostream& out,
|
|
const int nRanStart,
|
|
const bool optimizeAlpha = false,
|
|
const double epsilonLikelihoodImprovement4alphaOptimiz = 0.001,
|
|
const double epsilonLikelihoodImprovement4BBL = 0.001,
|
|
const int maxIterationsBBL = 10,
|
|
const Vdouble * weights = NULL);
|
|
|
|
};
|
|
|
|
#endif
|