@ALDDerivedClass @ALDParametrizedClass public class MTBTermMaxIterations extends MTBTermination
Modifier and Type | Field and Description |
---|---|
private int |
maxIterations
Maximum number of iterations.
|
optimizer, status, verbose
Constructor and Description |
---|
MTBTermMaxIterations()
Default constructor.
|
MTBTermMaxIterations(int _maxIterations)
Constructor with maximum number of iterations on which the snake
optimization is terminated.
|
Modifier and Type | Method and Description |
---|---|
MTBTermMaxIterations |
clone()
Clones this object.
|
int |
getMaxIter()
Get maximum iteration count.
|
boolean |
init(SnakeOptimizerSingle opt)
Initializing routine which is called once before the termination is
actually used.
|
SnakeOptimizer.Snake_status |
terminate()
Termination is done when a maximum number of snake iterations is reached.
|
String |
toString()
Method for short termination description name.
|
@ALDClassParameter(label="Maximum Iteration Count") private int maxIterations
public MTBTermMaxIterations()
public MTBTermMaxIterations(int _maxIterations)
public boolean init(SnakeOptimizerSingle opt)
MTBTermination
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 termination strategy. If no stuff needs to be done in advance the routine should at least return true.
init
in class MTBTermination
opt
- calling snake optimizerpublic SnakeOptimizer.Snake_status terminate()
terminate
in class MTBTermination
public int getMaxIter()
public String toString()
MTBTermination
toString
in class MTBTermination
public MTBTermMaxIterations clone() throws CloneNotSupportedException
Note that the SnakeOptimizerSingle
object is left null!
You have to call SnakeOptimizer.initOptimizer()
before
using the gamma updater.
clone
in class MTBTermination
CloneNotSupportedException
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.