|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.mathutil.randomize.BasicRandomizer
org.encog.mathutil.randomize.RangeRandomizer
public class RangeRandomizer
A randomizer that will create random weight and bias values that are between a specified range.
Constructor Summary | |
---|---|
RangeRandomizer(double min,
double max)
Construct a range randomizer. |
Method Summary | |
---|---|
double |
getMax()
|
double |
getMin()
|
static int |
randomInt(int min,
int max)
Returns a random number in the range between min and max. |
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. |
static double |
randomize(Random r,
double min,
double max)
|
Methods inherited from class org.encog.mathutil.randomize.BasicRandomizer |
---|
getRandom, nextDouble, nextDouble, randomize, randomize, randomize, randomize, randomize, randomize, setRandom, setSeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeRandomizer(double min, double max)
min
- The minimum random value.max
- The maximum random value.Method Detail |
---|
public static int randomInt(int min, int max)
min
- The minimum desired random number.max
- The maximum desired random number.
public static double randomize(double min, double max)
min
- The minimum value.max
- The maximum value.
public static double randomize(Random r, double min, double max)
public double randomize(double d)
d
- The range randomizer ignores this value.
public double getMin()
public double getMax()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |