C# Class Encog.MathUtil.Randomize.BasicRandomizer

Provides basic functionality that most randomizers will need.
Inheritance: IRandomizer
Mostrar archivo Open project: encog/encog-silverlight-core

Public Methods

Method Description
NextDouble ( ) : double
NextDouble ( double min, double max ) : double

Generate a random number in the specified range.

Randomize ( double d ) : double

from Encog.mathutil.randomize.Randomizer

Randomize ( BasicNetwork network, int fromLayer ) : void

Randomize one level of a neural network.

Randomize ( IMLMethod method ) : void

Randomize the synapses and biases in the basic network based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

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.

Randomize ( double d, int begin, int size ) : 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.

Protected Methods

Method Description
BasicRandomizer ( ) : System

Construct a random number generator with a random(current time) seed. If you want to set your own seed, just call "getRandom().setSeed".

Method Details

BasicRandomizer() protected method

Construct a random number generator with a random(current time) seed. If you want to set your own seed, just call "getRandom().setSeed".
protected BasicRandomizer ( ) : System
return System

NextDouble() public method

public NextDouble ( ) : double
return double

NextDouble() public method

Generate a random number in the specified range.
public NextDouble ( double min, double max ) : double
min double The minimum value.
max double The maximum value.
return double

Randomize() public abstract method

from Encog.mathutil.randomize.Randomizer
public abstract Randomize ( double d ) : double
d double
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 synapses and biases in the basic network based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
public Randomize ( IMLMethod method ) : void
method IMLMethod A network 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

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, int begin, int size ) : void
d double An array to randomize.
begin int The beginning element of the array.
size int The size of the array to copy.
return void