Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 5a74176a78
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (32 sloc) 0.605 kB
#include <iostream>
#include <cstdlib>
#include <ctime>
//#include "neuron.cpp"
//#include "neuronLayer.cpp"
using namespace std;
class Neuron {
private:
float weight;
float input;
public:
float getInput();
float getWeight();
void setInput(float inputIn);
void setWeight(float weightIn);
};
inline float Neuron::getInput()
{
return input;
}
inline float Neuron::getWeight()
{
return weight;
}
inline void Neuron::setInput(float inputIn)
{
input = inputIn;
}
inline void Neuron::setWeight(float weightIn)
{
weight = weightIn;
}
Jump to Line
Something went wrong with that request. Please try again.