de.torstennahm.integrate
Class StopConditions.UntilCallsReached

java.lang.Object
  extended by de.torstennahm.integrate.StopConditions.UntilCallsReached
All Implemented Interfaces:
StopCondition
Enclosing class:
StopConditions

public static class StopConditions.UntilCallsReached
extends java.lang.Object
implements StopCondition

Signals the integration should be stopped if the integrand functions has been called at least the specified number of times.


Constructor Summary
StopConditions.UntilCallsReached(long calls)
          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

StopConditions.UntilCallsReached

public StopConditions.UntilCallsReached(long calls)
Construct the stop condition.

Parameters:
calls - minimum number of evaluations
Method Detail

stop

public boolean stop(IntegrationResult result)
Description copied from interface: StopCondition
Returns true if the integration should be stopped because of this condition.

Specified by:
stop in interface StopCondition
Parameters:
result - integration result
Returns:
true if condition is fulfilled

getConditionString

public java.lang.String getConditionString()
Description copied from interface: StopCondition
Returns a string describing the fulfillment of the condition. For example, if stopping when the error tolerance is below the requirement, the string might be "Error tolerance reached".

Specified by:
getConditionString in interface StopCondition
Returns:
string describing condition when it is fulfilled