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

📄 inputneuron.h

📁 基于VC开发的神经网络工具箱
💻 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();

	/// Does nothing
	void _recacheError();
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 std::string toString();

	/** For reflection.
	  * @return "InputNeuron
	  */
	virtual const char *getClassName();
};

}; //namespace annie
#endif // define _INPUTNEURON_H

⌨️ 快捷键说明

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