|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.torstennahm.integrate.error.RoundingErrorEstimator
public class RoundingErrorEstimator
Estimates the error caused by floating point rounding errors.
The estimator assumes that all calculations are done with
double
floating point accuracy.
Constructor Summary | |
---|---|
RoundingErrorEstimator()
|
Method Summary | |
---|---|
double |
getEstimate()
Returns the estimate of the integration error based on the log. |
void |
log(long pointsEvaluated,
double currentResult)
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 RoundingErrorEstimator()
Method Detail |
---|
public void log(long pointsEvaluated, double currentResult)
ErrorEstimator
log
in interface ErrorEstimator
pointsEvaluated
- number of function evaluations for this integral valuecurrentResult
- 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 |