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

📄 occlonglist.h

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

#ifndef OccLongList_H
#define OccLongList_H

#include "CMRmisc.h"
#include "TextTree.h"
#include "OccList.h"

extern vector<short> currentPath;

using namespace std;

struct pathocc 
{
	int dococ;
	int pathoc;
	int pos;
};

struct OccLongList { //the occurrence list for the FreqTree, i.e., Asai's algorithm
	vector<pathocc > occurrenceLong;
	int lastTid;
	int mySupport;
	
	OccLongList() : lastTid(-1), mySupport(0)
	{
	}
	
	
	void insert(int newdocTid, int newpathTid, int newLocation);
	bool OccLongList::combineList(const OccLongList& mother, const OccList& newNodes);
	void explore(const vector<bool>& isFrequent, 
				 const vector<TextTree>& database,
				 const int& support,
				 map<int, vector< vector<short> > >&  frequency,
				 vector< vector<short> >& maximal,
				 vector< vector<pathocc> >& maximalocclonglist);
};

#endif //OccLongList_H

⌨️ 快捷键说明

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