de.torstennahm.integrate
Class ProductIntegrator

java.lang.Object
  extended by de.torstennahm.integrate.Integrator<de.torstennahm.math.Function>
      extended by de.torstennahm.integrate.ProductIntegrator

public class ProductIntegrator
extends Integrator<de.torstennahm.math.Function>

This type of integrator performs integration by scaling up a set of one-dimensional nodes and weights using the tensor product approach. Because integration by Integrator subclasses is open-ended, the integrator successively doubles the target number of evaluations and then finds a tensor product grid that approximates this number. This process is repeated until the stop condition is fulfilled.

Author:
Torsten Nahm

Constructor Summary
ProductIntegrator(Generator generator)
           
 
Method Summary
 IntegrationResult integrate(de.torstennahm.math.Function integrand, StopCondition condition, java.util.List<Visualizer> visualizers)
          Performs numerical integration of the integrand until the given condition is fulfilled.
 
Methods inherited from class de.torstennahm.integrate.Integrator
integrate, integrateAbsTol, integrateAbsTol, integrateByPoints, integrateByPoints, integrateRelTol, integrateRelTol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductIntegrator

public ProductIntegrator(Generator generator)
Method Detail

integrate

public IntegrationResult integrate(de.torstennahm.math.Function integrand,
                                   StopCondition condition,
                                   java.util.List<Visualizer> visualizers)
                            throws IntegrationFailedException
Description copied from class: Integrator
Performs numerical integration of the integrand until the given condition is fulfilled.

Specified by:
integrate in class Integrator<de.torstennahm.math.Function>
Parameters:
integrand - object to be integrated
condition - stop condition
visualizers - list of visualizers or null for no visualization
Returns:
result of integration
Throws:
IntegrationFailedException - if an integration error occurs