|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ALDParametrizedClass public interface MTBSnakeEnergyComputable
Super class for all energies to be used with greedy snakes in MiToBo.
Method Summary | |
---|---|
double |
calcEnergy(SnakeOptimizerSingle o)
Calculates the energy of the current snake. |
double |
getScaleFactor()
Get scaling factor. |
boolean |
initEnergy(SnakeOptimizerSingleGreedy o)
Init routine which is called once before the energy is actually used. |
void |
setScaleFactor(double s)
Set the scaling factor. |
java.lang.String |
toString()
Get an identifier string for the energy object. |
void |
updateStatus(SnakeOptimizerSingleGreedy o)
Update internal state of energy object prior to querying derivatives and so on. |
Method Detail |
---|
double calcEnergy(SnakeOptimizerSingle o)
o
- Calling snake optimizer.
double getScaleFactor()
boolean initEnergy(SnakeOptimizerSingleGreedy o)
In this routine global parameter settings can be handled or other initialization stuff be done. The SnakeOptimizer will call this routine once before the actual use of the energy. If no stuff needs to be done in advance the routine should at least return true.
o
- Calling snake optimizer.
void setScaleFactor(double s)
s
- new scaling factor.java.lang.String toString()
When meta parameters are saved to a file, configuration objects need to be converted to strings. Consequently, each snake energy should be associated with a unique and descriptive string for later reference.
toString
in class java.lang.Object
void updateStatus(SnakeOptimizerSingleGreedy o)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |