📄 modularnetdlg.h
字号:
// ModularNetDlg.h : header file
//
#if !defined(AFX_MODULARNETDLG_H__C6B515CC_D875_4B0C_9D73_0508484638A6__INCLUDED_)
#define AFX_MODULARNETDLG_H__C6B515CC_D875_4B0C_9D73_0508484638A6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
///////////////////////////
#include "Matrix.h"
#include "AllDef.h"
///////////////////////////
//*****************************************************************************
/////////////////////////////////////////////
// 门网络训练函数 //
///////////////////////////////////////////__declspec (dllimport)
void FCM (
int nSamplenum,
int xSamplenum,
int Rule_num,
float err,
CMatrix &Z_vector,
CMatrix &U_apt,
CMatrix &Sample
);
//////////////////////////////////////////////
// 专家网络训练函数 //
////////////////////////////////////////////__declspec (dllimport)
void EXPERT_NET (
int nSamplenum,
int xSamplenum,
int Rule_num,
float err,
float Q,
CMatrix &B_quan,
CMatrix &Sample,
CMatrix &U_apt,
CMatrix &Ytrain
);
///////////////////////////////////////////////
// 隶属度生成函数 //
/////////////////////////////////////////////__declspec (dllimport)
void GATING_NET (
int nSamplenum,
int xSamplenum,
int Rule_num,
CMatrix &U_apt,
CMatrix &Sample,
CMatrix &Z_vector
);
///////////////////////////////////////////////////
// 预测函数 //__declspec (dllimport)
/////////////////////////////////////////////////
void PREDICT (
int nSamplenum,
int xSamplenum,
int Rule_num,
float err,
float Q,
CMatrix &Sample,
CMatrix &B_quan,
CMatrix &U_apt,
CMatrix &Ypredict
);
//*******************************************************************************
/////////////////////////////////////////////////////////////////////////////
// CModularNetDlg dialog
class CModularNetDlg : public CDialog
{
// Construction
public:
CModularNetDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CModularNetDlg)
enum { IDD = IDD_MODULARNET_DIALOG };
CStatic m_SticCtlSample;
CStatic m_SticCtlSaveZ;
CStatic m_SticCtlSaveU;
CEdit m_ctlsavez;
CEdit m_ctlitnum;
CEdit m_ctlerror;
CEdit m_ctlstudyrate;
CEdit m_ctlrulenum;
CButton m_BtnCtlSave;
CButton m_BtnCtlLoad;
CStatic m_SticCtlError;
CStatic m_SticCtlSave;
CStatic m_SticCtlTrainNet;
int m_trainradio;
CString m_trainnetStr;
float m_studyrate;
UINT m_rulenum;
CString m_saveU;
CString m_saveZ;
UINT m_nITNUM;
CString m_saveSample;
CString m_error;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CModularNetDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CModularNetDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnRadiotrain();
afx_msg void OnRadiopredict();
afx_msg void OnBtntrainNet();
afx_msg void OnBtnsavez();
afx_msg void OnBtntrain();
afx_msg void OnBtnsave();
afx_msg void OnBtnsaveu();
afx_msg void OnAboutus();
afx_msg void OnBtnsample();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
///////***************************************************
public:
//打开文件
void SelOpenFile(DWORD IDC,CString m_nOpenStr);
//保存文件
void SelSaveFile(DWORD IDC,CString m_nSaveStr);
//清零
void ClearAll();
void DFCM();//隶属度学习函数
void DEXPERT_NET();//专家网络学习函数
void DGATING_NET();//隶属度生成函数
void DPREDICT();//预测函数
// 用于存储输入的样本数据的矩阵
CMatrix m_matrixPattern;
// 用于存储规则对样本适合度数组
CMatrix m_matrixUapt;
// 用于存储规则中心向量数组
CMatrix m_matrixZvector;
// 用于存储学习样本数组
//CMatrix m_matrixSample;
// 用于存储专家网络权值数组
CMatrix m_matrixBquan;
//存y*
CMatrix m_Yp;
//学习结果
long int ITA;
float err,Qresult;
int m_nPattern,m_xPattern;
///////****************************************************
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MODULARNETDLG_H__C6B515CC_D875_4B0C_9D73_0508484638A6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -