de.torstennahm.integrate
Class ProductIntegrator
java.lang.Object
de.torstennahm.integrate.Integrator<de.torstennahm.math.Function>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductIntegrator
public ProductIntegrator(Generator generator)
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 integratedcondition - stop conditionvisualizers - list of visualizers or null for no visualization
- Returns:
- result of integration
- Throws:
IntegrationFailedException - if an integration error occurs