Neural Networks 0.2
A framework for Lukas Zdechovan's Neural Networks C++ projects.
|
Provides functionality to input and output value through the neuron. More...
#include <Neuron.h>
Public Member Functions | |
Neuron (bool useActivation) | |
Constructs new neuron. | |
void | setInput (double value) |
Sets the value of the neuron. | |
double | getOutput () |
Calculates the output of the neuron with use of activation function if useActivation equals true. | |
Protected Attributes | |
double | value |
bool | useActivation |
Provides functionality to input and output value through the neuron.
NeuralNetwork::Neuron::Neuron | ( | bool | useActivation | ) | [inline] |
Constructs new neuron.
useActivation | specifies whether the neuron use activation function when calculating output |
home lukas Dropbox Skola Diplomova praca Neural Networks C SourceCode NeuralNetworks NeuralNetwork Neuron cpp double NeuralNetwork::Neuron::getOutput | ( | ) |
Calculates the output of the neuron with use of activation function if useActivation equals true.
void NeuralNetwork::Neuron::setInput | ( | double | value | ) |
Sets the value of the neuron.
value | the input value |
bool NeuralNetwork::Neuron::useActivation [protected] |
double NeuralNetwork::Neuron::value [protected] |