C# Class Accord.Neuro.Neuron

Show file Open project: accord-net/framework

Protected Properties

Property Type Description
inputsCount int
output double
rand IRandomNumberGenerator
weights double[]

Public Methods

Method Description
Compute ( double input ) : double

Computes output value of neuron.

The actual neuron's output value is determined by inherited class. The output value is also stored in Output property.

Randomize ( ) : void

Randomize neuron.

Initialize neuron's weights with random values specified by the RandGenerator.

Protected Methods

Method Description
Neuron ( int inputs ) : System

Initializes a new instance of the Neuron class.

The new neuron will be randomized (see Randomize method) after it is created.

Method Details

Compute() public abstract method

Computes output value of neuron.
The actual neuron's output value is determined by inherited class. The output value is also stored in Output property.
public abstract Compute ( double input ) : double
input double Input vector.
return double

Neuron() protected method

Initializes a new instance of the Neuron class.
The new neuron will be randomized (see Randomize method) after it is created.
protected Neuron ( int inputs ) : System
inputs int Neuron's inputs count.
return System

Randomize() public method

Randomize neuron.
Initialize neuron's weights with random values specified by the RandGenerator.
public Randomize ( ) : void
return void

Property Details

inputsCount protected property

Neuron's inputs count.
protected int inputsCount
return int

output protected property

Neuron's output value.
protected double output
return double

rand protected property

Random number generator.
The generator is used for neuron's weights randomization.
protected IRandomNumberGenerator rand
return IRandomNumberGenerator

weights protected property

Neuron's weights.
protected double[] weights
return double[]