File indexing completed on 2026-06-02 08:48:23
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef INPUTCELL_H_
0009 #define INPUTCELL_H_
0010
0011 #include <string>
0012
0013 #include "NeuralNetworkCell.h"
0014
0015 namespace NumA {
0016
0017 class InputCell: public NeuralNetworkCell {
0018
0019 public:
0020
0021 InputCell();
0022 virtual ~InputCell();
0023 virtual InputCell* clone() const;
0024 virtual std::string toString() const;
0025
0026 virtual void evaluate();
0027 virtual double evaluateDerivativeBackward(
0028 NeuralNetworkNeuron* const neuron) const;
0029
0030 virtual void checkConsistency() const;
0031
0032 void setInput(double input);
0033 double getInput() const;
0034
0035 protected:
0036
0037 InputCell(const InputCell& other);
0038
0039 private:
0040
0041 double m_input;
0042 };
0043
0044 }
0045
0046 #endif