C# Class Accord.Neuro.Neuron

Datei anzeigen 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_oe property

Neuron's inputs count.
protected int inputsCount
return int

output protected_oe property

Neuron's output value.
protected double output
return double

rand protected_oe property

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

weights protected_oe property

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