Package org.moeaframework.analysis.io
Class Parameter
java.lang.Object
org.moeaframework.analysis.io.Parameter
Defines a parameter.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Parameter
Constructs a new parameter with the specified name, lower bound, and upper bound.- Parameters:
name
- the parameter namelowerBound
- the lower bound of the parameterupperBound
- the upper bound of the parameter
-
-
Method Details
-
getName
Returns the name of this parameter.- Returns:
- the name of this parameter.
-
getLowerBound
public double getLowerBound()Returns the lower bound of this parameter.- Returns:
- the lower bound of this parameter
-
getUpperBound
public double getUpperBound()Returns the upper bound of this parameter.- Returns:
- the upper bound of this parameter
-
scale
public double scale(double sample) Scales a value sampled between[0, 1]
to the range[lowerBound, upperBound]
.- Parameters:
sample
- the sampled value between[0, 1]
- Returns:
- the scaled value between the lower and upper bounds
-