C# Class Encog.MathUtil.Randomize.ConstRandomizer

A randomizer that will create always set the random number to a const value, used mainly for testing.
Inheritance: BasicRandomizer
显示文件 Open project: encog/encog-silverlight-core

Public Methods

Method Description
ConstRandomizer ( double v )

Construct a range randomizer.

Randomize ( double d ) : double

Generate a random number based on the range specified in the constructor.

Method Details

ConstRandomizer() public method

Construct a range randomizer.
public ConstRandomizer ( double v )
v double The constant value.

Randomize() public method

Generate a random number based on the range specified in the constructor.
public Randomize ( double d ) : double
d double The range randomizer ignores this value.
return double