Class Neuron

This class represents a neuron of a neural net's neuron layer.


public class Neuron

Extends


java.lang.Object

Instantiated by


NeuronLayer

Constructors


public Neuron ()

Methods


void activateSigmoid ()

Performs a sigmoid activation on a neuron's input and computes its output.

 

void computeOutputError ( float targetValue )

Computes the output error of a neuron in an output neuron layer by comparing the neuron's current output with the targetValue.

 

float getInput ()

Returns the input value of a neuron.

 

float getOutput ()

Returns the output value of a neuron.

 

float getOutputError ()

Returns the output error value of a neuron.

 

void init ( float input )

Initializes a neuron with an input value.

Neural Net Components in an Object Oriented Class Structure