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

📄 inputlayer.h

📁 基于VC开发的神经网络工具箱
💻 H
字号:
#ifndef _INPUTLAYER_H
#define _INPUTLAYER_H

#include "Layer.h"
#include "InputNeuron.h"

namespace annie
{

/** A layer of input neurons */
class InputLayer : public Layer
{
public:
	/** Construct a layer with the given label and with the given number of 
	  * inputs.
	  * @param label The label to be given to this layer
	  * @param size The number of input in this layer
	  */
	InputLayer(int label, int size);
	virtual ~InputLayer();

	/// Sets the values of the input neurons in this layer to the values provided
	virtual void setInput(VECTOR &input);

	/// Sets the values of the input neurons in this layer to the values provided
	virtual void setInput(real *input);

	/** Adds a neuron to the input layer
	  * @param nrn An InputNeuron
	  * @throws Exception if the given neuron is not an InputNeuron
	  */
	virtual void addNeuron(Neuron *nrn);

	/// Returns "InputLayer"
	virtual const char *getClassName();
};
}; //namespace annie
#endif // define _INPUTLAYER_H

⌨️ 快捷键说明

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