|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.analysis.solvers.BaseAbstractUnivariateSolver<DifferentiableUnivariateFunction>
org.apache.commons.math3.analysis.solvers.AbstractDifferentiableUnivariateSolver
org.apache.commons.math3.analysis.solvers.NewtonSolver
NewtonRaphsonSolver
@Deprecated 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()
Deprecated. Construct a solver. |
|
NewtonSolver(double absoluteAccuracy)
Deprecated. Construct a solver. |
|
| Method Summary | |
|---|---|
protected double |
doSolve()
Deprecated. Method for implementing actual optimization algorithms in derived classes. |
double |
solve(int maxEval,
DifferentiableUnivariateFunction f,
double min,
double max)
Deprecated. Find a zero near the midpoint of min and max. |
| Methods inherited from class org.apache.commons.math3.analysis.solvers.AbstractDifferentiableUnivariateSolver |
|---|
computeDerivativeObjectiveValue, setup |
| Methods inherited from class org.apache.commons.math3.analysis.solvers.BaseAbstractUnivariateSolver |
|---|
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.math3.analysis.solvers.BaseUnivariateSolver |
|---|
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,
DifferentiableUnivariateFunction f,
double min,
double max)
throws TooManyEvaluationsException
min and max.
solve in interface BaseUnivariateSolver<DifferentiableUnivariateFunction>solve in class BaseAbstractUnivariateSolver<DifferentiableUnivariateFunction>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()
throws TooManyEvaluationsException
doSolve in class BaseAbstractUnivariateSolver<DifferentiableUnivariateFunction>TooManyEvaluationsException - if the maximal number of evaluations
is exceeded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||