⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texttree.h

📁 包含最大频繁序列的挖掘; 包含层次聚类算法
💻 H
字号:
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
Header: TextTree.h
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef TextTree_H
#define TextTree_H

#include "CMRmisc.h"

using namespace std;

struct TextTree {
	TextTree() : classid(-1),doctid(-1), vNumber(0), vLabel(0), firstChild(0), nextSibling(0), parent(0) 
	{
	} 
	
	TextTree(int t) : classid(-1), doctid(t), vNumber(0), vLabel(0), firstChild(0), nextSibling(0), parent(0) 
	{
	}
	
	TextTree(int t, short v) : doctid(t), vNumber(v), 
		vLabel(v,-1), firstChild(v,-1), nextSibling(v,-1), parent(v,-1) ,classid(-1)
	{
	}
	
	~TextTree()
	{
	}
	//assuming the copy constructor and operator= have default definition
	
	int doctid;
	short vNumber;
	vector<short> vLabel;
	vector<short> firstChild;
	vector<short> nextSibling;
	vector<short> parent;
	vector< pair<int, vector<short> > > path;//pair(pathid,path)
	int classid;
};

istream& operator>>(istream& in, TextTree& rhs);
ostream& operator<<(ostream& out, const TextTree& rhs);

#endif //TextTree_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -