@ALDDerivedClass @ALDParametrizedClass public class MTBTermAreaDiffSlidingOffset extends MTBTermination
Modifier and Type | Field and Description |
---|---|
private double |
areaFraction
Area fraction factor.
|
private LinkedList<Integer> |
areas |
private int |
elemCount |
private LinkedList<Double> |
meanAreas |
private int |
timeOffset |
private int |
window |
optimizer, status, verbose
Constructor and Description |
---|
MTBTermAreaDiffSlidingOffset()
Default constructor.
|
MTBTermAreaDiffSlidingOffset(double _areaFraction) |
Modifier and Type | Method and Description |
---|---|
MTBTermAreaDiffSlidingOffset |
clone()
Clones this object.
|
double |
getAreaFraction()
Get area fraction.
|
boolean |
init(SnakeOptimizerSingle opt)
Initializing routine which is called once before the termination is
actually used.
|
SnakeOptimizer.Snake_status |
terminate()
Termination is done when the area difference of the former and the current
snake is below a given fraction factor or if a maximum number of iterations
is reached.
|
String |
toString()
Method for short termination description name.
|
private int timeOffset
private int window
private LinkedList<Integer> areas
private LinkedList<Double> meanAreas
private int elemCount
@ALDClassParameter(label="Area Fraction") private double areaFraction
public MTBTermAreaDiffSlidingOffset()
public MTBTermAreaDiffSlidingOffset(double _areaFraction)
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 double getAreaFraction()
public String toString()
MTBTermination
toString
in class MTBTermination
public MTBTermAreaDiffSlidingOffset 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.