This commit is contained in:
2014-10-02 17:52:56 +02:00
commit 8c1b406259
23 changed files with 525 additions and 0 deletions

25
src/Neuron Normal file
View File

@@ -0,0 +1,25 @@
#ifndef _NEURON_H_
#define _NEURON_H_
#include <vector>
namespace S{
class Neuron
{
public:
Neuron();
double getPotential() const;
void setPotential(double p);
double getWeight(unsigned int) const;
void setWeight(unsigned int i,double p);
bool activates(const std::vector<bool>);
protected:
double potential;
private:
std::vector<double> weights;
};
class SimpleNeuron: public Neuron
{
};
}
#endif