|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.torstennahm.integrate.error.ConvergenceEstimator
public class ConvergenceEstimator
Provides an estimate based on the assumption that the integral values shows logarithmic convergence. By logarithmic convergence, we mean that log(error(n))=a-b*log(n), where n is the number of function evaluations, and a and b are parameters.
Constructor Summary | |
---|---|
ConvergenceEstimator()
Create the convergence estimator with a default sample factor of 1.1. |
|
ConvergenceEstimator(double sampleFactor)
Create the convergence estimator with the specified sample factor. |
Method Summary | |
---|---|
double |
getEstimate()
Returns the estimate of the integration error based on the log. |
void |
log(long pointsEvaluated,
double currentValue)
Logs the current integration value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvergenceEstimator()
ConvergenceEstimator(double)
public ConvergenceEstimator(double sampleFactor)
sampleFactor
- factor between interpolation pointsMethod Detail |
---|
public void log(long pointsEvaluated, double currentValue)
ErrorEstimator
log
in interface ErrorEstimator
pointsEvaluated
- number of function evaluations for this integral valuecurrentValue
- current integral valuepublic double getEstimate()
ErrorEstimator
getEstimate
in interface ErrorEstimator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |