@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_BRACKETER
DEFAULT_MAX_ITERATIONS, DEFAULT_TOLERANCE
data, keepGoing
maxIterations
DEFAULT_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, setRootBracket
clone, getInitialGuess, getPerformance, getTolerance, setInitialGuess, setTolerance
getData, getKeepGoing, learn, setData, setKeepGoing, 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 double MAX_STEP
public RootFinderSecantMethod()
protected boolean initializeAlgorithm()
AbstractAnytimeBatchLearner
initializeAlgorithm
in class AbstractBracketedRootFinder
protected boolean step()
AbstractAnytimeBatchLearner
step
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
getResult
in interface AnytimeAlgorithm<InputOutputPair<java.lang.Double,java.lang.Double>>
getResult
in class AbstractBracketedRootFinder