inputlayer.h

来自「几种神经网络的源程序」· C头文件 代码 · 共 40 行

H
40
字号
#ifndef _INPUTLAYER_H#define _INPUTLAYER_H#include "Layer.h"#include "InputNeuron.h"namespace annie{/** A layer of input neurons */class InputLayer : public TLayer<InputNeuron>{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=0);	virtual ~InputLayer();	/// Sets the values of the input neurons in this layer to the values provided	virtual void setInput(const Vector &input);	/// Sets the values of the input neurons in this layer to the values provided	virtual void setInput(const 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 + =
减小字号Ctrl + -
显示快捷键?