init
This commit is contained in:
25
src/Neuron
Normal file
25
src/Neuron
Normal 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
|
||||
Reference in New Issue
Block a user