|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.torstennahm.integrate.Integrator<Evaluator> de.torstennahm.integrate.sparse.EstimateIntegrator
public class EstimateIntegrator
Sparse grid integrator that uses a hybrid of non-adaptive simplicial strategy and adaptive estimation of the index contributions. From all valid indices, the one with the highest expected contribution will be added to the index set in each step. The expected contribution is obtained as an estimate from the contributions of the direct predecessors. Either the geometric average, the maximum or the minimum of these contributions can be used as an estimate.
The controller will also intercalate indices from the standard simplex. This increases robustness for difficult functions. The quota of these simplicial indices may be set between 0 and 1. The quota sets the relative amout of simplicial indices to be used. A quota of 1 thus makes the controller default to standard non-adaptive sparse grid integration.
For the error estimate, the sum of the absolute values of the contributions of all those indices in the index set is used that do not have any forward neighbors in the index set.
This class is thread-safe.
Integrator
,
IntegrationResult
,
Evaluator
,
Visualizer
Nested Class Summary | |
---|---|
protected static class |
EstimateIntegrator.EstimateData
|
protected class |
EstimateIntegrator.InternalIntegrator
|
Field Summary | |
---|---|
static int |
GEOMETRIC
Averaging mode for forward error estimation. |
static int |
MAXIMUM
Averaging mode for forward error estimation. |
static int |
MINIMUM
Averaging mode for forward error estimation. |
protected int |
mode
Averaging mode used for forward error estimation |
protected double |
simplexQuota
Quotient of simplicial indices to use |
protected Index |
zeroIndex
|
Constructor Summary | |
---|---|
EstimateIntegrator()
Constructs the estimate sparse integrator with the default settings. |
|
EstimateIntegrator(double simplexQuota,
int mode)
Construct the estimate sparse integrator with the specified simplex quota. |
Method Summary | |
---|---|
IntegrationResult |
integrate(Evaluator evaluator,
StopCondition condition,
java.util.List<Visualizer> visualizers)
Performs numerical integration of the integrand until the given condition is fulfilled. |
java.lang.String |
toString()
|
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, wait, wait, wait |
Field Detail |
---|
public static final int GEOMETRIC
public static final int MAXIMUM
public static final int MINIMUM
protected final int mode
protected final double simplexQuota
protected final Index zeroIndex
Constructor Detail |
---|
public EstimateIntegrator()
EstimateIntegrator(double, int)
and geometric
estimation.
EstimateIntegrator(double, int)
public EstimateIntegrator(double simplexQuota, int mode)
simplexQuota
- quota of simplicial indices used, must be between 0 and 1mode
- estimate mode, one of GEOMETRIC, MAXIMUM, MINIMUM
java.lang.IllegalArgumentException
- if the quota is out of rangeMethod Detail |
---|
public IntegrationResult integrate(Evaluator evaluator, StopCondition condition, java.util.List<Visualizer> visualizers) throws IntegrationFailedException
Integrator
integrate
in class Integrator<Evaluator>
evaluator
- object to be integratedcondition
- stop conditionvisualizers
- list of visualizers or null
for no visualization
IntegrationFailedException
- if an integration error occurspublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |