org.encog.mathutil.randomize
public class RangeRandomizer extends BasicRandomizer
Constructor and Description |
---|
RangeRandomizer(double min,
double max)
Construct a range randomizer.
|
Modifier and Type | Method and Description |
---|---|
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) |
getRandom, nextDouble, nextDouble, randomize, randomize, randomize, randomize, randomize, randomize, setRandom
public RangeRandomizer(double min, double max)
min
- The minimum random value.max
- The maximum random value.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()
Copyright © 2014. All Rights Reserved.