|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.torstennahm.integrate.error.SimpleEstimator
public class SimpleEstimator
Provides a very simple estimate of the integration error. The estimate given is the absolute difference between the integral value at n/2 and n function evaluations, where n increases with new log entries.
Constructor Summary | |
---|---|
SimpleEstimator()
|
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 SimpleEstimator()
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 |