|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.opendse.model.parameter.ParameterRange
public class ParameterRange
The ParameterRange is a double-valued parameter wihtin a lower and an
upper bound.
| Field Summary | |
|---|---|
protected double |
granularity
|
protected double |
lb
|
protected double |
ub
|
protected double |
value
|
| Constructor Summary | |
|---|---|
ParameterRange(double value,
double lb,
double ub)
Constructs a ParameterRange. |
|
ParameterRange(double value,
double lb,
double ub,
double granularity)
Constructs a ParameterRange. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final double value
protected final double lb
protected final double ub
protected final double granularity
| Constructor Detail |
|---|
public ParameterRange(double value,
double lb,
double ub)
ParameterRange.
value - the default valuelb - the lower boundub - the upper bound
public ParameterRange(double value,
double lb,
double ub,
double granularity)
ParameterRange.
value - the default valuelb - the lower boundub - the upper boundgranularity - the granularity (step-size)| Method Detail |
|---|
public double getLowerBound()
public double getUpperBound()
public java.lang.Object getValue()
Parameter
getValue in interface Parameterpublic double normalizeValue(double value)
value - the value
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||