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

📄 10dlg.h

📁 完成BP人工神经网络算法的学习
💻 H
字号:
// 10Dlg.h : header file
//

#if !defined(AFX_10DLG_H__1FA7D6A0_CC8E_4E0F_8CAB_AF59A6D705A8__INCLUDED_)
#define AFX_10DLG_H__1FA7D6A0_CC8E_4E0F_8CAB_AF59A6D705A8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMy10Dlg dialog

class CMy10Dlg : public CDialog
{
// Construction
	typedef struct LNode    //定义结构存放实例
{
	float x1;
    float x2;
	float x3;
	float x4;
	float x5;
	float y;
	struct LNode *next;
}LNode, *LinkList;

public:
	CMy10Dlg(CWnd* pParent = NULL);	// standard constructor

	void readexample(LinkList *L);         //从文件读取实例
    double MAXE(double E[7],int e);        //求误差最大值
    void Print_L(LinkList *L);   
    void initiarray(double w1[][16],double w2[]);   //随机初始权矩阵     
    void printarray(double w1[][16],double w2[]); 
    void learn(LinkList L, double w1[][16],double w2[]);     //学习
    void test(double w1[][16],double w2[]);        //预测

// Dialog Data
	//{{AFX_DATA(CMy10Dlg)
	enum { IDD = IDD_MY10_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMy10Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_10DLG_H__1FA7D6A0_CC8E_4E0F_8CAB_AF59A6D705A8__INCLUDED_)

⌨️ 快捷键说明

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