|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.udc.gii.common.eaf.plugin.parameter.Parameter
es.udc.gii.common.eaf.plugin.parameter.RandomValue
public class RandomValue
A parameter that returns an evenly distributed random value between two given bounds.
Configuration:0 1
LowerBound
sets the lower bound of the range. If not given, -1 is
assumed. UpperBound
sets the upper bound of the range. If not given
1 is assumed.
Field Summary | |
---|---|
private double |
lowerBound
|
private double |
upperBound
|
Constructor Summary | |
---|---|
RandomValue()
Default constructor. |
|
RandomValue(double lowerBound,
double upperBound)
Constructs an instance of this class. |
Method Summary | |
---|---|
void |
configure(org.apache.commons.configuration.Configuration conf)
Configures this class. |
double |
get(EvolutionaryAlgorithm algorithm)
|
double |
getLowerBound()
|
double |
getUpperBound()
|
void |
setLowerBound(double lowerBound)
Sets the lower bound of the range. |
void |
setUpperBound(double upperBound)
Sets the upper bound of the range. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double lowerBound
private double upperBound
Constructor Detail |
---|
public RandomValue(double lowerBound, double upperBound)
lowerBound
- Lower bound of the range.upperBound
- Upper bound of the range.public RandomValue()
Method Detail |
---|
public double get(EvolutionaryAlgorithm algorithm)
get
in class Parameter
algorithm
- Current algorithm. Not used and hence can be set to
null
.
public void configure(org.apache.commons.configuration.Configuration conf)
conf
- Configuration
public double getLowerBound()
public void setLowerBound(double lowerBound)
lowerBound
- The new lower bound.public double getUpperBound()
public void setUpperBound(double upperBound)
upperBound
- The new upper bound.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |