|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.torstennahm.integrate.StopConditions.UntilRelTol
public static class StopConditions.UntilRelTol
Signals the integration should be stopped if the specified absolute tolerance has been reached. That is, this class checks whether the error estimate divided by the estimate for the value of the integral has an absolute value less than the given tolerance.
If the check fails, the current number of function evaluations n will be stored. The next check will only be performed when the number of function evaluations is at least n*1.5. This is an effort to mitigate stopping bias: since an integration that is stopped will not be restarted, but an integration that is not stopped will be checked for stopping again, and since the error is an estimate underlying random fluctuations, the net effect is a premature stopping, which becomes worse the more often the error is sampled.
Constructor Summary | |
---|---|
StopConditions.UntilRelTol(double relativeTolerance)
Construct the stop condition. |
Method Summary | |
---|---|
java.lang.String |
getConditionString()
Returns a string describing the fulfillment of the condition. |
boolean |
stop(IntegrationResult result)
Returns true if the integration should be stopped because of this condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StopConditions.UntilRelTol(double relativeTolerance)
relativeTolerance
- tolerance to be reachedMethod Detail |
---|
public boolean stop(IntegrationResult result)
StopCondition
stop
in interface StopCondition
result
- integration result
public java.lang.String getConditionString()
StopCondition
getConditionString
in interface StopCondition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |