| Modifier and Type | Field and Description |
|---|---|
protected double |
granularity |
protected double |
lb |
protected double |
ub |
protected double |
value |
| Constructor and Description |
|---|
ParameterRange(double value,
double lb,
double ub)
Constructs a
ParameterRange. |
ParameterRange(double value,
double lb,
double ub,
double granularity)
Constructs a
ParameterRange. |
| Modifier and Type | Method and Description |
|---|---|
double |
getLowerBound()
Returns the lower bound.
|
double |
getUpperBound()
Returns the upper bound.
|
java.lang.Object |
getValue()
Returns the current value of the parameter.
|
double |
normalizeValue(double value)
Normalizes the value.
|
java.lang.String |
toString() |
protected final double value
protected final double lb
protected final double ub
protected final double granularity
public ParameterRange(double value,
double lb,
double ub)
ParameterRange.value - the default valuelb - the lower boundub - the upper boundpublic ParameterRange(double value,
double lb,
double ub,
double granularity)
ParameterRange.value - the default valuelb - the lower boundub - the upper boundgranularity - the granularity (step-size)public double getLowerBound()
public double getUpperBound()
public java.lang.Object getValue()
Parameterpublic double normalizeValue(double value)
value - the valuepublic java.lang.String toString()
toString in class java.lang.Object