1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#ifndef PARAMTREECONS_H
#define PARAMTREECONS_H
//
#include "paramqt.h"
//
class ParamTreeCons : public ParamQt
{
class Cluster{public:int i;double d;Cluster(){};Cluster(int a,double b) {i=a;d=b;}};
public:
ParamTreeCons();
virtual ~ParamTreeCons();
void account();
void consensus(int cutoff);
void consensusExt();
static void makeKey(Node*,QString*);
protected:
QHash<QString, Cluster> hash;
int its;
QString buildsubtree(QString,vector<QString>*);
bool compat(QString,QString);
};
#endif
|