public class RangeRandomizer extends WeightsRandomizer
| Modifier and Type | Field and Description |
|---|---|
protected double |
max
Upper range limit
|
protected double |
min
Lower range limit
|
randomGen| Constructor and Description |
|---|
RangeRandomizer(double min,
double max)
Creates a new instance of RangeRandomizer within specified .
|
RangeRandomizer(double min,
double max,
Random randomGen) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
nextRandomWeight()
Generates next random value within [min, max] range determined by the settings in this randomizer
|
getRandomGen, randomize, randomize, randomizepublic RangeRandomizer(double min,
double max)
min - min weight valuemax - max weight valuepublic RangeRandomizer(double min,
double max,
Random randomGen)
protected double nextRandomWeight()
nextRandomWeight in class WeightsRandomizerCopyright © 2019 Neuroph Project. All rights reserved.