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.
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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[]