Neural Networks 0.2
A framework for Lukas Zdechovan's Neural Networks C++ projects.
Public Member Functions | Protected Attributes

NeuralNetwork::Neuron Class Reference

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

Detailed Description

Provides functionality to input and output value through the neuron.


Constructor & Destructor Documentation

NeuralNetwork::Neuron::Neuron ( bool  useActivation) [inline]

Constructs new neuron.

Parameters:
useActivationspecifies whether the neuron use activation function when calculating output

Member Function Documentation

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.

Returns:
the output value
void NeuralNetwork::Neuron::setInput ( double  value)

Sets the value of the neuron.

Parameters:
valuethe input value

Field Documentation

double NeuralNetwork::Neuron::value [protected]

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Defines