#ifndef NEURON_H #define NEURON_H /////////////////////////////////////////////////////////////// // neuron.h - define family of neurons /* complete prologue and add manual page and maintenance page */ #include class neuron { public: void input(int selectInput, double value); void weight(int selectWeight, double value); int size(); void showInputs(); void showWeights(); virtual double output() = 0; virtual double slope() = 0; virtual neuron* clone() = 0; protected: std::vector _inputs; std::vector _weights; }; inline int neuron::size() { return _inputs.size(); } class linearNeuron : public neuron { public: linearNeuron(int numInputs); virtual double output(); virtual double slope(); virtual neuron* clone(); }; #endif