drasys.or.nonlinear
Interface IntegrationI

All Known Implementing Classes:
Integration, Simpsons, Trapezoidal

public interface IntegrationI

An interface to access numerical integration algorithms.


Method Summary
 double getEpsilon()
          Get the relative error of the integration.
 int getMaxIterations()
          Get the maximum number of iterations.
 double integrate(FunctionI function, double lowerBound, double upperBound)
          Integrate the function between the bounds.
 void setEpsilon(double epsilon)
          Set the absolute relative error of the integration.
 void setMaxIterations(int maxIterations)
          Set the maximum number of iterations.
 

Method Detail

setEpsilon

public void setEpsilon(double epsilon)
Set the absolute relative error of the integration.

getEpsilon

public double getEpsilon()
Get the relative error of the integration.

setMaxIterations

public void setMaxIterations(int maxIterations)
Set the maximum number of iterations.

getMaxIterations

public int getMaxIterations()
Get the maximum number of iterations.

integrate

public double integrate(FunctionI function,
                        double lowerBound,
                        double upperBound)
                 throws AccuracyException
Integrate the function between the bounds.
Throws:
AccuracyException - if the desired accuracy can't be reached.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com