📄 bpnetdlg.h
字号:
#if !defined(AFX_BPNETDLG_H__098BBF02_632F_4960_A36B_AC2BE9C41F44__INCLUDED_)
#define AFX_BPNETDLG_H__098BBF02_632F_4960_A36B_AC2BE9C41F44__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BPNetDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CBPNetDlg dialog
#define NMXUNIT 40
#define NMXHLR 5
#define NMXOATTR 40
#define NMXINP 3000 //学习样本的最大个数
#define NMXIATTR 40
#define SEXIT 3
#define RESTRT 2
#define FEXIT 1
#define CONTNE 0
class CBPNetDlg : public CDialog
{
// Construction
public:
CBPNetDlg(CWnd* pParent = NULL); // standard constructor
double eta;
double alpha;
double err_curr;
double maxe;
double maxep;
double *wtptr[NMXHLR+1];
double *outptr[NMXHLR+2];
double *errptr[NMXHLR+2];
double *delw[NMXHLR+1];
double target[NMXINP][NMXOATTR];
double input[NMXINP][NMXIATTR],ep[NMXINP];
double outpt[NMXINP][NMXOATTR];
int nunit[NMXINP+2],nhlayer,ninput,ninattr,noutattr;
int result,cnt,cnt_num,nsnew,nsold;
char task_name[20];
int nsample;
//FILE *fp1,*fp2,*fp3,*fopen();
int fplot10;
long randseed;// standard constructor
int nsampleFangzhen;//方针数据的个数
public:
int random();
void init();
void initwt();
void learning();
void set_up();
void user_session();
int rumelhart(int from_snum, int to_snum);
int introspective(int nfrom,int nto);
void forward(int i);
void dwrite(char *taskname);
void wtwrite(char *taskname);
void output_generation();
void wtread(char *taskname);
// Dialog Data
//{{AFX_DATA(CBPNetDlg)
enum { IDD = IDR_MAINFRAME };
CButton m_statebtn;
double m_error;
double m_alpha;
long m_maxnum;
double m_eta;
int m_ninattr;
int m_noutattr;
int m_nhlayer;
int m_nodehlayer;
CString m_inputdata;
// CString m_errortmp;
// long m_maxtemp;
CString m_INPUTNET;
CString m_INPUTFANGZHEN;
//}}AFX_DATA
bool m_bSimulateDataFlag;
bool m_bEnableLearn;
BOOL INPUTNETWEIGHT,INPUTNETEMULATION;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBPNetDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CFont m_fntOk;
// Generated message map functions
//{{AFX_MSG(CBPNetDlg)
afx_msg void OnBeginLearn();
afx_msg void OnOutput();
afx_msg void OnDataInputbrowse();
afx_msg void Oninputnetdata();
afx_msg void Oninputfangzhendata();
afx_msg void OnchangeState();
virtual BOOL OnInitDialog();
afx_msg void OnCancel();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BPNETDLG_H__098BBF02_632F_4960_A36B_AC2BE9C41F44__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -