de.torstennahm.integrate.error
Interface ErrorEstimator

All Known Implementing Classes:
ConvergenceEstimator, FastConvergenceEstimator, IterativeConvergenceEstimator, RandomWalkEstimator, RoundingErrorEstimator, SimpleEstimator

public interface ErrorEstimator

Provides an estimate of the current error of the integral. The estimate is based on a log of previous integration values.

Author:
Torsten Nahm

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.
 

Method Detail

log

void log(long pointsEvaluated,
         double currentValue)
Logs the current integration value.

Parameters:
pointsEvaluated - number of function evaluations for this integral value
currentValue - current integral value

getEstimate

double getEstimate()
Returns the estimate of the integration error based on the log.

Returns:
estimate of the integration error