mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 07:10:24 +08:00
33 lines
716 B
C++
33 lines
716 B
C++
// $Id: Nni.h 962 2006-11-07 15:13:34Z privmane $
|
|
|
|
#ifndef ___NNI
|
|
#define ___NNI
|
|
|
|
#include "definitions.h"
|
|
#include "tree.h"
|
|
#include "sequenceContainer.h"
|
|
#include "stochasticProcess.h"
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
class NNI {
|
|
public:
|
|
explicit NNI(const sequenceContainer& sc,
|
|
const stochasticProcess& sp,
|
|
const Vdouble * weights);
|
|
|
|
tree NNIstep(tree et);
|
|
MDOUBLE bestScore(){ return _bestScore;}
|
|
|
|
private:
|
|
tree _bestTree;
|
|
MDOUBLE _bestScore;
|
|
const sequenceContainer& _sc;
|
|
const stochasticProcess& _sp;
|
|
const Vdouble * _weights;
|
|
MDOUBLE evalTree(tree& et,const sequenceContainer& sd);
|
|
tree NNIswap1(tree et,tree::nodeP mynode);
|
|
tree NNIswap2(tree et,tree::nodeP mynode);
|
|
};
|
|
#endif
|