C# Class Encog.Mathutil.Randomize.FanInRandomizer

Inheritance: Encog.MathUtil.Randomize.BasicRandomizer
Show file Open project: encog/encog-silverlight-core

Public Methods

Method Description
FanInRandomizer ( ) : System

Create a fan-in randomizer with default values.

FanInRandomizer ( double boundary, bool sqrt ) : System

Construct a fan-in randomizer along the specified boundary. The min will be -boundary and the max will be boundary.

FanInRandomizer ( double aLowerBound, double anUpperBound, bool sqrt ) : System

Construct a fan-in randomizer. Use the specified bounds.

Randomize ( double d ) : double

Starting with the specified number, randomize it to the degree specified by this randomizer. This could be a totally new random number, or it could be based on the specified number.

Randomize ( BasicNetwork network, int fromLayer ) : void

Randomize one level of a neural network.

Randomize ( Matrix m ) : void

Randomize the matrix based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Randomize ( double d ) : void

Randomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Private Methods

Method Description
CalculateValue ( int rows ) : double

Calculate the fan-in value.

CauseError ( ) : void

Throw an error if this class is used improperly.

Method Details

FanInRandomizer() public method

Create a fan-in randomizer with default values.
public FanInRandomizer ( ) : System
return System

FanInRandomizer() public method

Construct a fan-in randomizer along the specified boundary. The min will be -boundary and the max will be boundary.
public FanInRandomizer ( double boundary, bool sqrt ) : System
boundary double The boundary for the fan-in.
sqrt bool
return System

FanInRandomizer() public method

Construct a fan-in randomizer. Use the specified bounds.
public FanInRandomizer ( double aLowerBound, double anUpperBound, bool sqrt ) : System
aLowerBound double The lower bound.
anUpperBound double The upper bound.
sqrt bool
return System

Randomize() public method

Starting with the specified number, randomize it to the degree specified by this randomizer. This could be a totally new random number, or it could be based on the specified number.
public Randomize ( double d ) : double
d double The number to randomize.
return double

Randomize() public method

Randomize one level of a neural network.
public Randomize ( BasicNetwork network, int fromLayer ) : void
network Encog.Neural.Networks.BasicNetwork The network to randomize
fromLayer int The from level to randomize.
return void

Randomize() public method

Randomize the matrix based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
public Randomize ( Matrix m ) : void
m Matrix A matrix to randomize.
return void

Randomize() public method

Randomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
public Randomize ( double d ) : void
d double An array to randomize.
return void