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

📄 bpnlayerexedoc.h

📁 BP神经网络程序
💻 H
字号:
// BpNlayerEXEDoc.h : interface of the CBpNlayerEXEDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BPNLAYEREXEDOC_H__1D668C1F_650D_4D73_A7B0_A9310853C947__INCLUDED_)
#define AFX_BPNLAYEREXEDOC_H__1D668C1F_650D_4D73_A7B0_A9310853C947__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BPNLayer.h"
#include "resualtTextView.h"
#include "textshowView.h"
class CBpNlayerEXEDoc : public CDocument
{
protected: // create from serialization only
	CBpNlayerEXEDoc();
	DECLARE_DYNCREATE(CBpNlayerEXEDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBpNlayerEXEDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	CBPNLayer *m_pBPNet;
	int m_iLayerNum,*m_piLayerCapture;
	NEURONTYPE m_FunctionType;
	double m_dStudyRate,m_dMomentum;
	BOOL m_bRunEnable,m_bPauseEnable,m_bStopEnable,m_bSaveEnable,m_bSaveAsEnable
		,m_bPropotinoEnable,m_bSettingEnable,m_bExpendEnable,m_bTreeEnable;
	BOOL m_bNew;
	BOOL m_bAbsError;
	resualtTextView *m_pResualtView;
	textshowView *m_pTextShowView;
	virtual ~CBpNlayerEXEDoc();
	static CBpNlayerEXEDoc* GetDoc();
	void Train(int times);
	void Train(int iRepeatTimth,double dError);
	void Expend(int times);
	void SetDatabase();
	static bool IsNum(CString str);
private:
	int m_iTrainTimth;
	CDaoDatabase m_DbOpen,m_DbSave;
	CDaoRecordset *m_pRsOpen;
	CDaoTableDef *m_pTdOpen,*m_pTdSave;
	CFileDialog *m_pFileDlg;
public:
	CDaoRecordset *m_pRsSave;
	BOOL m_bDataOk;
	//COleVariant coletemp;
/*	int filesNum;
	double biggest[3]={0,0,0},lowwest[3]={0,0,0},temp=0;
	//double temp;
	dlg.m_ofn.lpstrTitle="打开";
	dlg.m_ofn.lpstrFilter="Access database(*.mdb)\0*.mdb\0Text file(*.txt)\0*.txt\0All files(*.*)\0*.*\0\0";
	dlg.m_ofn.lpstrDefExt="mdb";*/
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CBpNlayerEXEDoc)
	afx_msg void OnFileNew();
	afx_msg void OnFileSave();
	afx_msg void OnFileOpen();
	afx_msg void OnUnitary();
	afx_msg void OnUnunitary();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_BPNLAYEREXEDOC_H__1D668C1F_650D_4D73_A7B0_A9310853C947__INCLUDED_)

⌨️ 快捷键说明

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