|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.randomize.BasicRandomizer
org.encog.util.randomize.ConstRandomizer
public class ConstRandomizer
A randomizer that will create always set the random number to a const value, used mainly for testing.
| Constructor Summary | |
|---|---|
ConstRandomizer(double value)
Construct a range randomizer. |
|
| Method Summary | |
|---|---|
double |
randomize(double d)
Generate a random number based on the range specified in the constructor. |
static double |
randomize(double min,
double max)
Generate a random number in the specified range. |
| Methods inherited from class org.encog.util.randomize.BasicRandomizer |
|---|
randomize, randomize, randomize, randomize, randomize, randomize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstRandomizer(double value)
value - The constant value.| Method Detail |
|---|
public static double randomize(double min,
double max)
min - The minimum value.max - The maximum value.
public double randomize(double d)
d - The range randomizer ignores this value.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||