C# Class AForge.Neuro.Neuron

Base neuron class.
This is a base neuron class, which encapsulates such common properties, like neuron's input, output and weights.
Afficher le fichier Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Protected Properties

Свойство Type Description
inputsCount int
output double
rand AForge.ThreadSafeRandom
randRange AForge.Range
weights double[]

Méthodes publiques

Méthode 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 within the range specified by RandRange.

Méthodes protégées

Méthode 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 méthode

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.
Résultat double

Neuron() protected méthode

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.
Résultat System

Randomize() public méthode

Randomize neuron.
Initialize neuron's weights with random values within the range specified by RandRange.
public Randomize ( ) : void
Résultat void

Property Details

inputsCount protected_oe property

Neuron's inputs count.
protected int inputsCount
Résultat int

output protected_oe property

Neuron's output value.
protected double output
Résultat double

rand protected_oe static_oe property

Random number generator.
The generator is used for neuron's weights randomization.
protected static ThreadSafeRandom,AForge rand
Résultat AForge.ThreadSafeRandom

randRange protected_oe static_oe property

Random generator range.
Sets the range of random generator. Affects initial values of neuron's weight. Default value is [0, 1].
protected static Range,AForge randRange
Résultat AForge.Range

weights protected_oe property

Nouron's wieghts.
protected double[] weights
Résultat double[]