C# Class numl.Supervised.NeuralNetwork.Edge

Inheritance: IXmlSerializable
Show file Open project: sethjuarez/numl Class Usage Examples

Public Methods

Method Description
Create ( Neuron source, Neuron target, double weight = double.NaN, double epsilon = double.NaN ) : Edge

Creates a new Edge.

Edge ( ) : System

Default constructor.

GetEpsilon ( double min, double max, double inputs, double outputs ) : double

Computes the weight epsilon parameter.

GetWeight ( double epsilon ) : double

Computes a new weight from the interval: -epsilon to +epsilon.

ToString ( ) : string

Returns a string that represents the current object.

Method Details

Create() public static method

Creates a new Edge.
public static Create ( Neuron source, Neuron target, double weight = double.NaN, double epsilon = double.NaN ) : Edge
source Neuron Source for the.
target Neuron Target for the.
weight double Weight parameter to initialize with.
epsilon double Seed value to use when randomly selecting a weight (ignored when is supplied). /// The weight is then chosen from the open interval: -epsilon to +epsilon. ///
return Edge

Edge() public method

Default constructor.
public Edge ( ) : System
return System

GetEpsilon() public static method

Computes the weight epsilon parameter.
public static GetEpsilon ( double min, double max, double inputs, double outputs ) : double
min double Minimum activation function value.
max double Maximum activation function value.
inputs double Number of inward connections to the current node.
outputs double Number of outward connections from the current node.
return double

GetWeight() public static method

Computes a new weight from the interval: -epsilon to +epsilon.
public static GetWeight ( double epsilon ) : double
epsilon double Precomputed epsilon for computing a
return double

ToString() public method

Returns a string that represents the current object.
public ToString ( ) : string
return string