public abstract class AbstractBracketedRootFinder extends AbstractRootFinder
| Modifier and Type | Field and Description |
|---|---|
static RootBracketer |
DEFAULT_ROOT_BRACKETER
Default root-bracketing algorithm, RootBracketExpander.
|
DEFAULT_MAX_ITERATIONS, DEFAULT_TOLERANCEdata, keepGoingmaxIterationsDEFAULT_ITERATION, iteration| Constructor and Description |
|---|
AbstractBracketedRootFinder()
Creates a new instance of AbstractBracketedRootFinder
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupAlgorithm()
Called to clean up the learning algorithm's state after learning has
finished.
|
RootBracketer |
getBracketer()
Gets the root-bracketing algorithm that will be used to initially
bracket the root.
|
InputOutputPair<java.lang.Double,java.lang.Double> |
getResult()
Gets the current result of the algorithm.
|
LineBracket |
getRootBracket()
Getter for rootBracket.
|
protected boolean |
initializeAlgorithm()
Called to initialize the learning algorithm's state based on the
data that is stored in the data field.
|
void |
setBracketer(RootBracketer bracketer)
Gets the root-bracketing algorithm that will be used to initially
bracket the root.
|
void |
setRootBracket(LineBracket rootBracket)
Setter for rootBracket.
|
clone, getInitialGuess, getPerformance, getTolerance, setInitialGuess, setTolerancegetData, getKeepGoing, learn, setData, setKeepGoing, step, stopgetMaxIterations, isResultValid, setMaxIterationsaddIterativeAlgorithmListener, fireAlgorithmEnded, fireAlgorithmStarted, fireStepEnded, fireStepStarted, getIteration, getListeners, removeIterativeAlgorithmListener, setIteration, setListenersequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlearngetMaxIterations, setMaxIterationsaddIterativeAlgorithmListener, getIteration, removeIterativeAlgorithmListenerisResultValid, stoppublic static final RootBracketer DEFAULT_ROOT_BRACKETER
public AbstractBracketedRootFinder()
protected boolean initializeAlgorithm()
AbstractAnytimeBatchLearnerinitializeAlgorithm in class AbstractAnytimeBatchLearner<Evaluator<java.lang.Double,java.lang.Double>,InputOutputPair<java.lang.Double,java.lang.Double>>protected void cleanupAlgorithm()
AbstractAnytimeBatchLearnercleanupAlgorithm in class AbstractAnytimeBatchLearner<Evaluator<java.lang.Double,java.lang.Double>,InputOutputPair<java.lang.Double,java.lang.Double>>public InputOutputPair<java.lang.Double,java.lang.Double> getResult()
AnytimeAlgorithmpublic RootBracketer getBracketer()
public void setBracketer(RootBracketer bracketer)
bracketer - Root-bracketing algorithm.public LineBracket getRootBracket()
public void setRootBracket(LineBracket rootBracket)
rootBracket - Gets the bracket on the root location. That is, a range of input values
where a root is guaranteed to lay between.