References:
| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_EPSILON
Maximum allowed numerical error. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public double | Returns: the value of the continued fraction evaluated at x.the evaluation point. x)Evaluates the continued fraction at the value x. |
| public double | Returns: the value of the continued fraction evaluated at x.the evaluation point. x, double maximum error allowed. epsilon)Evaluates the continued fraction at the value x. |
| public double | Returns: the value of the continued fraction evaluated at x.the evaluation point. x, int maximum number of convergents maxIterations)Evaluates the continued fraction at the value x. |
| public double | Returns: the value of the continued fraction evaluated at x.the evaluation point. x, double maximum error allowed. epsilon, int maximum number of convergents maxIterations)Evaluates the continued fraction at the value x. |
| protected abstract double | Returns: the n-th a coefficient.the coefficient index to retrieve. n, double the evaluation point. x)Access the n-th a coefficient of the continued fraction. |
| protected abstract double | Returns: the n-th b coefficient.the coefficient index to retrieve. n, double the evaluation point. x)Access the n-th b coefficient of the continued fraction. |
| DEFAULT_EPSILON | back to summary |
|---|---|
| private static final double DEFAULT_EPSILON Maximum allowed numerical error. | |
| ContinuedFraction | back to summary |
|---|---|
| protected ContinuedFraction() Default constructor. | |
| evaluate | back to summary |
|---|---|
| public double evaluate(double x) throws ConvergenceException Evaluates the continued fraction at the value x.
| |
| evaluate | back to summary |
|---|---|
| public double evaluate(double x, double epsilon) throws ConvergenceException Evaluates the continued fraction at the value x.
| |
| evaluate | back to summary |
|---|---|
| public double evaluate(double x, int maxIterations) throws ConvergenceException, MaxCountExceededException Evaluates the continued fraction at the value x.
| |
| evaluate | back to summary |
|---|---|
| public double evaluate(double x, double epsilon, int maxIterations) throws ConvergenceException, MaxCountExceededException Evaluates the continued fraction at the value x. The implementation of this method is based on the modified Lentz algorithm as described on page 18 ff. in:
Note the implementation uses the terms ai and bi as defined in Continued Fraction @ MathWorld.
| |
| getA | back to summary |
|---|---|
| protected abstract double getA(int n, double x) Access the n-th a coefficient of the continued fraction. Since a can be a function of the evaluation point, x, that is passed in as well.
| |
| getB | back to summary |
|---|---|
| protected abstract double getB(int n, double x) Access the n-th b coefficient of the continued fraction. Since b can be a function of the evaluation point, x, that is passed in as well.
| |