@PublicationReference(author="Wikipedia", title="Secant method", type=WebPage, year=2009, url="http://en.wikipedia.org/wiki/Secant_method") public class RootFinderSecantMethod extends AbstractBracketedRootFinder
| Modifier and Type | Field and Description |
|---|---|
static double |
MAX_STEP
Maximum step size allowed, 1.0
|
DEFAULT_ROOT_BRACKETERDEFAULT_MAX_ITERATIONS, DEFAULT_TOLERANCEdata, keepGoingmaxIterationsDEFAULT_ITERATION, iteration| Constructor and Description |
|---|
RootFinderSecantMethod()
Creates a new instance of RootFinderSecantMethod
|
| Modifier and Type | Method and Description |
|---|---|
InputOutputPair<java.lang.Double,java.lang.Double> |
getResult()
Gets the current result of the algorithm.
|
protected boolean |
initializeAlgorithm()
Called to initialize the learning algorithm's state based on the
data that is stored in the data field.
|
protected boolean |
step()
Called to take a single step of the learning algorithm.
|
cleanupAlgorithm, getBracketer, getRootBracket, setBracketer, setRootBracketclone, getInitialGuess, getPerformance, getTolerance, setInitialGuess, setTolerancegetData, getKeepGoing, learn, setData, setKeepGoing, 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 double MAX_STEP
public RootFinderSecantMethod()
protected boolean initializeAlgorithm()
AbstractAnytimeBatchLearnerinitializeAlgorithm in class AbstractBracketedRootFinderprotected boolean step()
AbstractAnytimeBatchLearnerstep 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()
AnytimeAlgorithmgetResult in interface AnytimeAlgorithm<InputOutputPair<java.lang.Double,java.lang.Double>>getResult in class AbstractBracketedRootFinder