public abstract class ContinuedFraction extends Object
References:
Modifier and Type | Method and Description |
---|---|
double |
evaluate(double x)
Evaluates the continued fraction at the value x.
|
double |
evaluate(double x,
double epsilon)
Evaluates the continued fraction at the value x.
|
double |
evaluate(double x,
double epsilon,
int maxIterations)
Evaluates the continued fraction at the value x.
|
double |
evaluate(double x,
int maxIterations)
Evaluates the continued fraction at the value x.
|
public double evaluate(double x) throws ConvergenceException
x
- the evaluation point.ConvergenceException
- if the algorithm fails to converge.public double evaluate(double x, double epsilon) throws ConvergenceException
x
- the evaluation point.epsilon
- maximum error allowed.ConvergenceException
- if the algorithm fails to converge.public double evaluate(double x, int maxIterations) throws ConvergenceException, MaxCountExceededException
x
- the evaluation point.maxIterations
- maximum number of convergentsConvergenceException
- if the algorithm fails to converge.MaxCountExceededException
- if maximal number of iterations is reachedpublic double evaluate(double x, double epsilon, int maxIterations) throws ConvergenceException, MaxCountExceededException
The implementation of this method is based on the modified Lentz algorithm as described on page 18 ff. in:
x
- the evaluation point.epsilon
- maximum error allowed.maxIterations
- maximum number of convergentsConvergenceException
- if the algorithm fails to converge.MaxCountExceededException
- if maximal number of iterations is reachedJas4pp 1.5 © Java Analysis Studio for Particle Physics