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

📄 simplenet.h

📁 用遗传算法优化神经网络权值的源程序
💻 H
字号:

#ifndef _SIMPLENET_H_
#define _SIMPLENET_H_

#include <stdlib.h>
#include <math.h>

class CSimpleNet {
	public:
		CSimpleNet();
		~CSimpleNet();

		void	AlterWeights(float);
		float	Train(float, float, float);
		float	Run(float, float, float);

		// Set/retrieve the weights
		void	SetWeights(float *);
		void	GetWeights(float *);

	protected:
		float m_fWeights[3][3];

		inline float Sigmoid(float);
};

#endif

⌨️ 快捷键说明

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