de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize
Class MTBGammaFixed

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaUpdate
      extended by de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaFixed
All Implemented Interfaces:
Cloneable

@ALDDerivedClass
@ALDParametrizedClass
public class MTBGammaFixed
extends MTBGammaUpdate

Class for gamma adaptation with a fixed decreasing factor for all gamma values.

Author:
misiak

Field Summary
 
Fields inherited from class de.unihalle.informatik.MiToBo.segmentation.snakes.optimize.stepsize.MTBGammaUpdate
adaptedGamma, optimizer, verbose
 
Constructor Summary
MTBGammaFixed()
          Default constructor.
MTBGammaFixed(double decreaseFactor)
          Constructor with fixed decreasing factor for adaptation.
 
Method Summary
 double[][] adaptGamma()
          Gamma adaptation using fixed decreasing factor for all gamma values.
 MTBGammaFixed clone()
          Clones this object.
 boolean init(SnakeOptimizerSingleVarCalc opt)
          Initializing routine which is called once before the gamma adaptation is actually used.
 String toString()
          Method for short adaptation description name.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MTBGammaFixed

public MTBGammaFixed()
Default constructor.


MTBGammaFixed

public MTBGammaFixed(double decreaseFactor)
Constructor with fixed decreasing factor for adaptation.

Parameters:
decreaseFactor - decreasing value for gamma adaptation.
Method Detail

init

public boolean init(SnakeOptimizerSingleVarCalc opt)
Description copied from class: MTBGammaUpdate
Initializing routine which is called once before the gamma adaptation is actually used.

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.

Specified by:
init in class MTBGammaUpdate
Parameters:
opt - calling snake optimizer
Returns:
True if init was successful.

adaptGamma

public double[][] adaptGamma()
Gamma adaptation using fixed decreasing factor for all gamma values. Adaptation calculation: oldValue - (oldValue * decreasingFactor).

Specified by:
adaptGamma in class MTBGammaUpdate
Returns:
New adapted gamma values.

toString

public String toString()
Description copied from class: MTBGammaUpdate
Method for short adaptation description name.

Specified by:
toString in class MTBGammaUpdate

clone

public MTBGammaFixed clone()
                    throws CloneNotSupportedException
Clones this object.

Note that the SnakeOptimizerSingle object is left null! You have to call SnakeOptimizer.initOptimizer() before using the gamma updater.

Specified by:
clone in class MTBGammaUpdate
Throws:
CloneNotSupportedException


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.