|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver<DifferentiableUnivariateRealFunction>
org.apache.commons.math.analysis.solvers.AbstractDifferentiableUnivariateRealSolver
org.apache.commons.math.analysis.solvers.NewtonSolver
public class NewtonSolver
Implements Newton's Method for finding zeros of real univariate functions.
The function should be continuous but not necessarily smooth.
| Constructor Summary | |
|---|---|
NewtonSolver()
Construct a solver. |
|
NewtonSolver(double absoluteAccuracy)
Construct a solver. |
|
| Method Summary | |
|---|---|
protected double |
doSolve()
Method for implementing actual optimization algorithms in derived classes. |
double |
solve(int maxEval,
DifferentiableUnivariateRealFunction f,
double min,
double max)
Find a zero near the midpoint of min and max. |
| Methods inherited from class org.apache.commons.math.analysis.solvers.AbstractDifferentiableUnivariateRealSolver |
|---|
computeDerivativeObjectiveValue, setup |
| Methods inherited from class org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver |
|---|
computeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMaxEvaluations, getMin, getRelativeAccuracy, getStartValue, incrementEvaluationCount, isBracketing, isSequence, solve, solve, verifyBracketing, verifyInterval, verifySequence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.math.analysis.solvers.BaseUnivariateRealSolver |
|---|
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solve |
| Constructor Detail |
|---|
public NewtonSolver()
public NewtonSolver(double absoluteAccuracy)
absoluteAccuracy - Absolute accuracy.| Method Detail |
|---|
public double solve(int maxEval,
DifferentiableUnivariateRealFunction f,
double min,
double max)
min and max.
solve in interface BaseUnivariateRealSolver<DifferentiableUnivariateRealFunction>solve in class BaseAbstractUnivariateRealSolver<DifferentiableUnivariateRealFunction>f - Function to solve.min - Lower bound for the interval.max - Upper bound for the interval.maxEval - Maximum number of evaluations.
TooManyEvaluationsException - if the maximum evaluation count is exceeded.
NumberIsTooLargeException - if min >= max.protected double doSolve()
doSolve in class BaseAbstractUnivariateRealSolver<DifferentiableUnivariateRealFunction>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||