org.encog.mathutil.randomize
Class ConsistentRandomizer
- java.lang.Object
-
- org.encog.mathutil.randomize.BasicRandomizer
-
- org.encog.mathutil.randomize.ConsistentRandomizer
-
- All Implemented Interfaces:
- Randomizer
public class ConsistentRandomizer extends BasicRandomizer
A randomizer that takes a seed and will always produce consistent results.
-
-
Constructor Summary
Constructors Constructor and Description ConsistentRandomizer(double min, double max)Construct a range randomizer.ConsistentRandomizer(double min, double max, int seed)Construct a range randomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidrandomize(BasicNetwork network)Randomize the network.doublerandomize(double d)Generate a random number based on the range specified in the constructor.-
Methods inherited from class org.encog.mathutil.randomize.BasicRandomizer
getRandom, nextDouble, nextDouble, randomize, randomize, randomize, randomize, randomize, randomize, setRandom
-
-
-
-
Constructor Detail
-
ConsistentRandomizer
public ConsistentRandomizer(double min, double max)Construct a range randomizer.- Parameters:
min- The minimum random value.max- The maximum random value.
-
ConsistentRandomizer
public ConsistentRandomizer(double min, double max, int seed)Construct a range randomizer.- Parameters:
min- The minimum random value.max- The maximum random value.seed- The seed value.
-
-
Method Detail
-
randomize
public double randomize(double d)
Generate a random number based on the range specified in the constructor.- Parameters:
d- The range randomizer ignores this value.- Returns:
- The random number.
-
randomize
public void randomize(BasicNetwork network)
Randomize the network.- Parameters:
network- The network to randomize.
-
-
DMelt 3.0 © DataMelt by jWork.ORG