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

📄 inputneuron.h

📁 annie is an ANN, ie, Artificial Neural Network library developed in C++. It can be used to implement
💻 H
字号:
#ifndef _INPUTNEURON_H#define _INPUTNEURON_H#include "Neuron.h"namespace annie{/** Input neurons are slightly special. They don't really do much, just implement  * the Neuron interface so that other neurons can create Links to these.  * Input neurons allow you to set their output. The activation and output of these  * neurons is the same and equal to the value set.  */class InputNeuron : public Neuron{private:	/// Does nothing	void _recacheOutput() const;	/// Does nothing	void _recacheError() const;public:	/** Creates an input neuron with the given label	  * @param label The label to be given to the input	  */	InputNeuron(int label);	/** Sets the input. The result of getOutput() and getActivation() will	  * be this value.	  * @param value The input value this neuron is associated with	  */	void setValue(real value);	/** A description of the input. Useful for debugging.	  * @return A descriptive string. This is just for possible debugging, isn't of	  *			much other value	  */	virtual operator std::string() const;	/** For reflection.	  * @return "InputNeuron	  */	virtual const char *getClassName() const;};}; //namespace annie#endif // define _INPUTNEURON_H

⌨️ 快捷键说明

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