occlist.cpp

来自「包含最大频繁序列的挖掘; 包含层次聚类算法」· C++ 代码 · 共 21 行

CPP
21
字号
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
Class: OccList

Description: Used to store the occurrence list of a rooted 
ordered pattern tree, for Asai's FREQT algorithm
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#include "OccList.h"


//this prepares for OccLongList, i.e., the new occurrence may be a new leg,
void OccList::insert(int& newTid, const int& newLocation, int& motherId)
{
	occurrence.push_back(make_pair(motherId,newLocation));
	if ( lastTid != newTid ) { //if comes from a new transaction
		lastTid = newTid;
		mySupport++;
	}
}

⌨️ 快捷键说明

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