bp.h

来自「一个我做的BP神经网用于分类和测试的程序。是一个我第一个独立完成的程序。希望对大」· C头文件 代码 · 共 44 行

H
44 行
字号
// BP.h: interface for the CBP class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BP_H__E0ECD2E0_B703_428C_B9FA_606C27D05243__INCLUDED_)
#define AFX_BP_H__E0ECD2E0_B703_428C_B9FA_606C27D05243__INCLUDED_

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

class CBP  
{
public:
	CBP();
	virtual ~CBP();
	CBP(int f,int sh,int be,int layer);
	void initial();
	void Trainnet(double **inputarry);
	double func(double x);
	void  test_everynet(double *inputunarray);
	double Train_everynet(int z);	

private:
	double **first;
	double **second;
	double **shuru;
	double *yuzhi1;
	double *yuzhi2;
	int front;
	int shadow;
	int behind;
    int *Node;
// 	int *Noderesult;
	int layernumber;
	double ***firstweight;
	double ***secondweight;
	int behindlayer;


};

#endif // !defined(AFX_BP_H__E0ECD2E0_B703_428C_B9FA_606C27D05243__INCLUDED_)

⌨️ 快捷键说明

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