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

📄 bayesmfcdlg.h

📁 针对Bayes网络中有关因果推理的方法设计与实现
💻 H
字号:
// BayesMFCDlg.h : header file
//

#if !defined(AFX_BAYESMFCDLG_H__9BFBB59A_1420_4A40_A298_B79C3701D167__INCLUDED_)
#define AFX_BAYESMFCDLG_H__9BFBB59A_1420_4A40_A298_B79C3701D167__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "fstream.h"

#define Max 32
#define arrayMax 100000

/////////////////////////////////////////////////////////////////////////////
// CBayesMFCDlg dialog

class CBayesMFCDlg : public CDialog
{
// Construction
public:
	void backtrack(int start);
	long cal();
	long power(long a,long b);
	CBayesMFCDlg(CWnd* pParent = NULL);	// standard constructor
	struct Node
	{
		char letter;	//表示该节点的字母
		int index;		//表示该节点为正出现还是负出现
	}result, condition[Max-1];

	struct MARK
	{
		BOOL pos;		//表示是否正
		BOOL iscon;		//表示是否为条件
	};
	int nodeNum,testnodeNum;
	MARK mark[Max-1];							//标记哪些是条件;
	double pro11[Max];							//原始概率
	double pro22[arrayMax];						//条件概率
	double proba;
	ifstream input;

// Dialog Data
	//{{AFX_DATA(CBayesMFCDlg)
	enum { IDD = IDD_BAYESMFC_DIALOG };
	CString	m_inStr;
	CString	m_outStr;
	CString	m_result;
	CString	m_state;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBayesMFCDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CBayesMFCDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtoniInit();
	afx_msg void OnButtonWork();
	virtual void OnCancel();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BAYESMFCDLG_H__9BFBB59A_1420_4A40_A298_B79C3701D167__INCLUDED_)

⌨️ 快捷键说明

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