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

📄 classtreenode.h

📁 用来文本分类的
💻 H
字号:
// lassTreeNode.h: interface for the ClassTreeNode class.
//
//////////////////////////////////////////////////////////////////////

#include <afxtempl.h>

class CListNode
{
public:
	int WordIndex;
	float Weight;    //权重
	int WordFreq;    //词频
	float Central;    //集中度
};
typedef  CList<CListNode,CListNode&> WORDVECTOR;


class ClassTreeNode  
{
public:
	ClassTreeNode();
	ClassTreeNode(int nDimOfVector,CString strKindName);
	virtual ~ClassTreeNode();
//class member variable
//data member
	CString KindName;
	int nDimOfVector;//the dimension of characteristic word vector at the node
	WORDVECTOR WordVector;//the pointer of the Word vector with weight 
				//and such that memory gets allocated in chunks of 10 nodes.
	int * pTFArray;

 
//link member
	ClassTreeNode *pFirstChild;
	ClassTreeNode *pNextSibling;
	ClassTreeNode *pParent;

};

⌨️ 快捷键说明

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