Package boofcv.misc
Class ConfigConverge
java.lang.Object
boofcv.misc.ConfigConverge
- All Implemented Interfaces:
Configuration
,Serializable
Generic configuration for optimization routines
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble
Relative threshold for change in function value between iterations.double
Absolute threshold for convergence based on the gradient's norm.int
Maximum number of iterations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks to see if the configuration is valid.setTo
(double ftol, double gtol, int maxIterations) setTo
(ConfigConverge src) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.struct.Configuration
serializeActiveFields, serializeInitialize
-
Field Details
-
ftol
public double ftolRelative threshold for change in function value between iterations. 0 ≤ ftol ≤ 1. -
gtol
public double gtolAbsolute threshold for convergence based on the gradient's norm. 0 disables test. gtol ≥ 0. -
maxIterations
public int maxIterationsMaximum number of iterations. What is defined as an iteration is implementation specific.
-
-
Constructor Details
-
ConfigConverge
public ConfigConverge(double ftol, double gtol, int maxIterations) -
ConfigConverge
-
ConfigConverge
public ConfigConverge()
-
-
Method Details
-
setTo
-
setTo
-
checkValidity
public void checkValidity()Description copied from interface:Configuration
Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.- Specified by:
checkValidity
in interfaceConfiguration
-