@ALDParametrizedClass public abstract class MTBGammaUpdate extends Object implements Cloneable
The step size can be adapted by several methods, which can be found in the derived classes in detail.
Modifier and Type | Field and Description |
---|---|
protected double[][] |
adaptedGamma
The new and adapted gamma values for all snake points.
|
protected SnakeOptimizerSingleVarCalc |
optimizer
Current snake optimizer with all its parameters and fields like the
current snake, old snake, gamma values and energies.
|
protected boolean |
verbose
Flag to turn display of additional information on/off.
|
Constructor and Description |
---|
MTBGammaUpdate() |
Modifier and Type | Method and Description |
---|---|
abstract double[][] |
adaptGamma()
Method for gamma adaptation.
|
abstract MTBGammaUpdate |
clone()
Clones this object.
|
abstract boolean |
init(SnakeOptimizerSingleVarCalc opt)
Initializing routine which is called once before the gamma adaptation is
actually used.
|
abstract String |
toString()
Method for short adaptation description name.
|
@ALDClassParameter(label="Verbose", dataIOOrder=100) protected boolean verbose
protected transient SnakeOptimizerSingleVarCalc optimizer
protected transient double[][] adaptedGamma
public abstract double[][] adaptGamma()
public abstract boolean init(SnakeOptimizerSingleVarCalc opt)
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 gamma update strategy. If no stuff needs to be done in advance the routine should at least return true.
opt
- calling snake optimizerpublic abstract String toString()
public abstract MTBGammaUpdate clone() throws CloneNotSupportedException
Note that all internal variables should be cloned. As this is not
possible for the SnakeOptimizerSingle
object the internal
reference should be left to null. It will be properly initialized
later when SnakeOptimizerSingle.initOptimizer()
is invoked.
clone
in class Object
CloneNotSupportedException
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.