?? childview.h
字號:
// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CHILDVIEW_H__B4322D71_1449_4F00_B1A2_5CCD873AE4C5__INCLUDED_)
#define AFX_CHILDVIEW_H__B4322D71_1449_4F00_B1A2_5CCD873AE4C5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"pred.h"
/////////////////////////////////////////////////////////////////////////////
// CChildView window
class CChildView : public CWnd
{
// Construction
public:
CChildView();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChildView)
protected:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
private:
enum {r=N_P};//輸入數據是8維的
enum {s1=N_Layer1};//隱層有7個神經元
enum {s2=N_Out};//輸出層有4個神經元
public:
DrawPoint(CPoint point,int gray,int area);
void DrawNumber(double p[],CPoint pcenter);
CRect rect;
CString strt;//訓練所用時間
CString stre;//最終誤差
double* dW1;
double* dW2;
double* dB1;
double* dB2;
double* T;//當前輸入樣本的期望輸出的指針
double* E;
double* f1(double A[],int m);//對列向量進行函數運算,并返回一個列向量
double* f2(double A[],int m);
double* F1(double N[],int m);
double* F2(double N[],int m);
double* B2;
double* B1;
double* S2;
double* S1;
double* A2;
double* N2;
double* W2;
double* A1;
double* N1;
double* W1;
double W1_init[s1*r];
double W2_init[s2*s1];
double B1_init[s1];
double B2_init[s2];
double W1_final[s1*r];
double W2_final[s2*s1];
double B1_final[s1];
double B2_final[s2];
double* P;//當前輸入樣本的指針
int TargetTest(double A[]);//返回T代表的數字,為0到9
long int learncount; //最終學習次數
//double* P_samples[10];
//double* T_output[10];
virtual ~CChildView();
void initwb();
void savewb();
void loadwb();
// Generated message map functions
protected:
//{{AFX_MSG(CChildView)
afx_msg void OnPaint();
afx_msg void OnMatrixT();
afx_msg void OnBpnTrain();
afx_msg void OnDrawError();
afx_msg void OnPrewb();
afx_msg void OnDispSamples();
afx_msg void OnBpnRun();
afx_msg void OnBPNVerify();
afx_msg void OnBPTRAINOptimal1();
afx_msg void OnSaveerror();
afx_msg void OnSaveweight();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHILDVIEW_H__B4322D71_1449_4F00_B1A2_5CCD873AE4C5__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -