C# Класс AForge.Neuro.Neuron

Base neuron class.
This is a base neuron class, which encapsulates such common properties, like neuron's input, output and weights.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
inputsCount int
output double
rand AForge.ThreadSafeRandom
randRange AForge.Range
weights double[]

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

Compute() публичный абстрактный Метод

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.
Результат double

Neuron() защищенный Метод

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.
Результат System

Randomize() публичный Метод

Randomize neuron.
Initialize neuron's weights with random values within the range specified by RandRange.
public Randomize ( ) : void
Результат void

Описание свойств

inputsCount защищенное свойство

Neuron's inputs count.
protected int inputsCount
Результат int

output защищенное свойство

Neuron's output value.
protected double output
Результат double

rand защищенное статическое свойство

Random number generator.
The generator is used for neuron's weights randomization.
protected static ThreadSafeRandom,AForge rand
Результат AForge.ThreadSafeRandom

randRange защищенное статическое свойство

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
Результат AForge.Range

weights защищенное свойство

Nouron's wieghts.
protected double[] weights
Результат double[]