classtreenode.h

来自「用来文本分类的」· C头文件 代码 · 共 39 行

H
39
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?