|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.algorithms.optimization.ConstantStartDistance
public class ConstantStartDistance
The most simple StartDistanceForecaster that returns always the same
value.
| Constructor Summary | |
|---|---|
ConstantStartDistance(double value)
This constructor creates an instance of ConstantStartDistance
that returns always the given value. |
|
| Method Summary | |
|---|---|
double |
getNewStartDistance()
This method returns the new positive start distance. |
void |
reset()
Resets the object to the initial state. |
void |
setLastDistance(double last)
Sets the last used distance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantStartDistance(double value)
ConstantStartDistance
that returns always the given value.
value - the value that will always be returned| Method Detail |
|---|
public double getNewStartDistance()
StartDistanceForecaster
getNewStartDistance in interface StartDistanceForecasterStartDistanceForecaster.setLastDistance(double)public void setLastDistance(double last)
StartDistanceForecaster
setLastDistance in interface StartDistanceForecasterlast - the last used distancepublic void reset()
StartDistanceForecaster
reset in interface StartDistanceForecaster
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||