File: densityontree.h

package info (click to toggle)
clonalorigin 1.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,800 kB
  • sloc: cpp: 10,488; perl: 349; xml: 130; makefile: 48; sh: 33
file content (26 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef DENSITYONTREE_H
#define DENSITYONTREE_H
//
#include "gelmanrubinimpl.h"
//
class DensityOnTree  
{

public:
	DensityOnTree(Tree*tree,double timeScale);
	void display(QPainter * painter,vector<double>*x,vector<double>*y,double scale,QBrush brush);
	void add(int edge ,double age,double relcon=1.0);
	void smooth();
	//inline int maximum(){int max=0;for (unsigned int i=0;i<d.size();i++) if (max<d[i]) max=d[i];return max;}
	inline void setTree(Tree*tree) {this->tree=tree;}
	void add2(RecTree *treefrom,int i,bool goingto,double relcon=1.0);///<Adds a projection onto the tree

protected:
	Tree * tree;
	vector <double> d;
	double above;
	double precision;
	double timeScale;
	
};
#endif