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_TOLERANCE
data, keepGoing
maxIterations
DEFAULT_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, setTolerance
getData, getKeepGoing, learn, setData, setKeepGoing, step, stop
getMaxIterations, isResultValid, setMaxIterations
addIterativeAlgorithmListener, fireAlgorithmEnded, fireAlgorithmStarted, fireStepEnded, fireStepStarted, getIteration, getListeners, removeIterativeAlgorithmListener, setIteration, setListeners
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
learn
getMaxIterations, setMaxIterations
addIterativeAlgorithmListener, getIteration, removeIterativeAlgorithmListener
isResultValid, stop
public static final RootBracketer DEFAULT_ROOT_BRACKETER
public AbstractBracketedRootFinder()
protected boolean initializeAlgorithm()
AbstractAnytimeBatchLearner
initializeAlgorithm
in class AbstractAnytimeBatchLearner<Evaluator<java.lang.Double,java.lang.Double>,InputOutputPair<java.lang.Double,java.lang.Double>>
protected void cleanupAlgorithm()
AbstractAnytimeBatchLearner
cleanupAlgorithm
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()
AnytimeAlgorithm
public 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.