statistic.h

来自「自主式决策树学习的程序源码」· C头文件 代码 · 共 32 行

H
32
字号
// Statistic.h: interface for the CStatistic class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STATISTIC_H__209CD7B9_47B1_4524_9604_EB8E713454D7__INCLUDED_)
#define AFX_STATISTIC_H__209CD7B9_47B1_4524_9604_EB8E713454D7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

struct  ValNode
{
	CString ValueName;//属性值
    CString ValueClass;//占最多的决策属性值
	int  ValTotalNum;//取此属性值的记录总数
	int  ValMaxNum;//取此属性值的记录在某分类中占最多的数
	float CerVote;//最大的所占比例
};


class CStatistic  
{
public:
	CStatistic();
	virtual ~CStatistic();
    int SelSplit(char arrAttName[],int AttCount,CPtrList myList[],CString strWh);//计算整体确定性
	//void FreeList(CPtrList  list[],int listCount);
};

#endif // !defined(AFX_STATISTIC_H__209CD7B9_47B1_4524_9604_EB8E713454D7__INCLUDED_)

⌨️ 快捷键说明

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