brain:neuron_group.h
neuron_group.h
#ifndef __SHAREWIZ_NEURON_GROUP_H__ #define __SHAREWIZ_NEURON_GROUP_H__ #include <memory> #include <vector> class NeuronGroup; class Neuron; typedef std::shared_ptr<NeuronGroup> pNeuronGroupX; typedef std::vector<pNeuronGroupX> pNeuronGroup; typedef std::shared_ptr<Neuron> pNeuronX; typedef std::vector<pNeuronX> pNeuron; class NeuronGroup { private: int index; pNeuron neurons; public: NeuronGroup(); NeuronGroup(unsigned int num_neurons); unsigned int getSize(void); // Returns how many neurons. int getIndex(void); void setIndex(const int& index); void addNeuron(const pNeuronX& n); void removeNeuron(const int& idx); pNeuronX& getNeuron(const int& idx); //void feedForward(const pLayerX& prevLayer); void printOutput(void); }; #endif
brain/neuron_group.h.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1