q1471341.mp1074.integration
Class IntegrationResult

java.lang.Object
  extended byq1471341.mp1074.integration.IntegrationResult

public class IntegrationResult
extends java.lang.Object

The class IntegrationResult models the result of an integration. The result of an integration consists of the estimated integral value, its estimated error, the number of function evaluations used for the integration, the duration of the integration process and an identification of the termination condition.

Author:
Ulrich Telle

Constructor Summary
IntegrationResult(double value, double estimatedError, long evaluationCount, long evaluationTime, int terminationCondition)
          Constructs an instance of an integration result.
 
Method Summary
 double getEstimatedError()
          Returns the error estimate for the integral value.
 long getEvaluationCount()
          Returns the number of times the integrand function has been evaluated.
 long getEvaluationTime()
          Returns the duration of the integration in milliseconds
 long getTerminationCondition()
          Returns the termination condition id
 double getValue()
          Returns the estimated integral value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegrationResult

public IntegrationResult(double value,
                         double estimatedError,
                         long evaluationCount,
                         long evaluationTime,
                         int terminationCondition)
Constructs an instance of an integration result.

Parameters:
value - estimated value of the integral
estimatedError - estimated integation error
evaluationCount - number of integrand evaluations
evaluationTime - duration of the integration process
terminationCondition - identifier of the termination condition
Method Detail

getValue

public double getValue()
Returns the estimated integral value. Double.NaN is returned if no estimate is available.

Returns:
integral value

getEstimatedError

public double getEstimatedError()
Returns the error estimate for the integral value. Double.NaN is returned if no estimate is available.

Returns:
error estimate of integral value

getEvaluationCount

public long getEvaluationCount()
Returns the number of times the integrand function has been evaluated.

Returns:
number of evaluations

getEvaluationTime

public long getEvaluationTime()
Returns the duration of the integration in milliseconds

Returns:
number of milliseconds

getTerminationCondition

public long getTerminationCondition()
Returns the termination condition id

Returns:
termination condition id