📄 baye.h
字号:
//********************************************//
// 程序员:巨少辉 //
// 日期: 2005年11月20日 //
// Baye.h : header file //
// 实现贝叶斯分类算法 //
//********************************************//
#if !defined(AFX_BAYE_H__C4E252A5_6A79_4D65_BF35_7584D0B979A4__INCLUDED_)
#define AFX_BAYE_H__C4E252A5_6A79_4D65_BF35_7584D0B979A4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CBaye view
class CBaye : public CListView
{
protected:
// protected constructor used by dynamic creation
DECLARE_DYNCREATE(CBaye)
// Attributes
public:
CBaye();
public:
//存储输入数据分层后的形式
/* CString Sage;
float Ssex;
float Scpt;
CString Srbp;
CString Ssci;
float Sfbu;
float Srer;
CString Smhra;
float Seia;
CString Sop;
CString Ssope;
CString Snomv;
float Sthal;
int RecordCount;//记录数据库表记录数目
float accurate;//记录该算法准确率
*/
// Operations
public:
int DoBayesianClass();
float DoAccurate();
int DatabeseRecord();
// void DoLayer(int age,int sex,int cpt,float rbp,float sci,int fbu,int rer,float mhra,int eia,float op,float sope,float nomv,int thal);
float findItem(CString colName,CString str,int y_n);
float findItem(CString colName,float col,int y_n);
float findItem(CString colName,int col);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBaye)
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
public:
float accurate;
int RecordCount;
float Sthal;
CString Snomv;
CString Ssope;
CString Sop;
float Seia;
CString Smhra;
float Srer;
float Sfbu;
CString Ssci;
CString Srbp;
float Scpt;
float Ssex;
CString Sage;
void DoLayer(int age,int sex,int cpt,float rbp,float sci,int fbu,int rer,float mhra,int eia,float op,float sope,float nomv,int thal);
virtual ~CBaye();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CBaye)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BAYE_H__C4E252A5_6A79_4D65_BF35_7584D0B979A4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -