occlonglist.h
来自「包含最大频繁序列的挖掘; 包含层次聚类算法」· C头文件 代码 · 共 44 行
H
44 行
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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 + =
减小字号Ctrl + -
显示快捷键?