?? prealarmdlg.h
字號:
// PreAlarmDlg.h : header file
//
#if !defined(AFX_PREALARMDLG_H__FE91F61B_6DB6_42B1_8446_DA0B930DFCAB__INCLUDED_)
#define AFX_PREALARMDLG_H__FE91F61B_6DB6_42B1_8446_DA0B930DFCAB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ButtonXp.h"
/////////////////////////////////////////////////////////////////////////////
// CPreAlarmDlg dialog
class CPreAlarmDlg : public CDialog
{
// Construction
public:
CPreAlarmDlg(CWnd* pParent = NULL); // standard constructor
WORD m_ReadID_w3x;
WORD m_DataType_w3x;
WORD m_ReadID_w3y;
WORD m_DataType_w3y;
WORD m_ReadID_w4x;
WORD m_DataType_w4x;
WORD m_ReadID_w4y;
WORD m_DataType_w4y;
WORD m_ReadID_zt;
WORD m_DataType_zt;
// Dialog Data
//{{AFX_DATA(CPreAlarmDlg)
enum { IDD = IDD_PREALARM_DIALOG };
CButtonXp m_b18;
CButtonXp m_b17;
CButtonXp m_b16;
CButtonXp m_b15;
CButtonXp m_b14;
CButtonXp m_b13;
CButtonXp m_b12;
CButtonXp m_b11;
CButtonXp m_b10;
CButtonXp m_b9;
CButtonXp m_b8;
CButtonXp m_b7;
CButtonXp m_b6;
CButtonXp m_b5;
CButtonXp m_b4;
CButtonXp m_b3;
CButtonXp m_b2;
CButtonXp m_b1;
CComboBox m_select;
CTreeCtrl m_Tw4y;
CTreeCtrl m_Tw4x;
CTreeCtrl m_Tw3y;
CTreeCtrl m_Tw3x;
float m_Ew3x;
float m_Ew3y;
float m_Ew4x;
float m_Ew4y;
float m_value01;
float m_value02;
float m_value03;
float m_value04;
float m_value05;
float m_value06;
float m_value07;
float m_value08;
double m_speed;
double m_alloweer;
double m_eer;
CString m_result;
int m_dsselectnum;
int m_dstotalnum;
float m_value09;
float m_value10;
float m_value11;
float m_value12;
float m_value13;
float m_value14;
float m_value15;
float m_value16;
float m_e1;
float m_e2;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPreAlarmDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
int k; //采集計數(shù)
int N; //時域點數(shù)
int Nfft; //fft點數(shù)
float F0; //風(fēng)機(jī)基頻
float fs; //采樣頻率
//BP
private:
enum {r=8}; //輸入層 8個神經(jīng)元
enum {s1=9}; //中間層 9個神經(jīng)元
enum {s2=8}; //輸出層 8個神經(jīng)元
public:
double* B1; //權(quán)值、偏置參數(shù)
double* B2; //權(quán)值、偏置參數(shù)
double* W1; //權(quán)值、偏置參數(shù)
double* W2; //權(quán)值、偏置參數(shù)
double W1_init[s1*r]; //權(quán)值、偏置參數(shù)
double W2_init[s2*s1]; //權(quán)值、偏置參數(shù)
double B1_init[s1]; //權(quán)值、偏置參數(shù)
double B2_init[s2]; //權(quán)值、偏置參數(shù)
double W1_final[s1*r]; //權(quán)值、偏置參數(shù)
double W2_final[s2*s1]; //權(quán)值、偏置參數(shù)
double B1_final[s1]; //權(quán)值、偏置參數(shù)
double B2_final[s2]; //權(quán)值、偏置參數(shù)
double* P; //當(dāng)前輸入樣本的指針
double* T; //當(dāng)前輸出樣本的指針
double* A1; //正向傳播參數(shù)
double* N1; //正向傳播參數(shù)
double* A2; //正向傳播參數(shù)
double* N2; //正向傳播參數(shù)
double* AA2;
double* E; //反向傳播參數(shù)
double* S2; //誤差修正參數(shù)
double* S1; //誤差修正參數(shù)
double* dW1; //權(quán)值修正參數(shù)
double* dW2; //權(quán)值修正參數(shù)
double* dB1; //偏置修正參數(shù)
double* dB2; //偏置修正參數(shù)
void cretwb();
void initwb();
void loadwb();
void savewb();
double* f1(double A[],int m); //激活函數(shù)
double* f2(double A[],int m); //激活函數(shù)
double* F1(double N[],int m); //激活函數(shù)
double* F2(double N[],int m); //激活函數(shù)
long int learncount; //學(xué)習(xí)次數(shù)
int N_Err; //總的訓(xùn)練次數(shù)
double error_accept; //接受誤差
double numE[100000]; //誤差存儲矩陣
double learnspeed; //學(xué)習(xí)速度
int Ns; //樣本數(shù)
//DS
double Bel[20][8];
double Psl[20];
int N_BP;
void diagnose();
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPreAlarmDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnConnectKingdom();
afx_msg void OnDisconnectKingdom();
afx_msg void OnReadData();
afx_msg void OnSaveData();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTdataCurve();
afx_msg void OnFdataCurve();
afx_msg void OnCpeakValue();
afx_msg void OnSubjection();
afx_msg void OnCurveClear();
afx_msg void OnBPTrain();
afx_msg void OnBPEerPic();
afx_msg void OnBPRun();
afx_msg void OnBPSave();
afx_msg void OnBPResult();
afx_msg void OnDSBel();
afx_msg void OnDSFuse();
afx_msg void OnDSDiagnose();
afx_msg void OnAutoRun();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PREALARMDLG_H__FE91F61B_6DB6_42B1_8446_DA0B930DFCAB__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -