|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.torstennahm.integrate.sparse.evaluateindex.DeltaWeightEvaluator
public class DeltaWeightEvaluator
Performs index evaluation using delta quadrature formulas generated from a quadrature formula generator. The delta quadrature formulas are generated based on the given generator, and integration is performed with the tensor product of the delta quadrature formulas. This class is thread-safe.
Constructor Summary | |
---|---|
DeltaWeightEvaluator(de.torstennahm.math.Function function,
Generator generator)
Constructs the evaluator. |
Method Summary | |
---|---|
boolean |
canEvaluate(Index index)
Returns whether the index evaluator can evaluate the given index. |
double |
deltaEvaluate(Index index)
Evaluates the integration function for the given integration index. |
int |
dimension()
Returns the dimension with which this index evaluator works. |
int |
pointsForIndex(Index index)
Returns the number of points the function needs to be evaluated at for this index. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DeltaWeightEvaluator(de.torstennahm.math.Function function, Generator generator)
function
- function to be integratedgenerator
- quadrature formula generatorMethod Detail |
---|
public int dimension()
Evaluator
dimension
in interface Evaluator
public double deltaEvaluate(Index index) throws IntegrationFailedException
Evaluator
deltaEvaluate
in interface Evaluator
index
- integration index
IntegrationFailedException
- if an integration error occurspublic boolean canEvaluate(Index index)
Evaluator
evaluateIndex
on an index
for which this method returns false
will produce an
IntegrationFailedException
.
This method returns false
exactly
if neededEvaluations
returns 0.
canEvaluate
in interface Evaluator
index
- index
true
if the index can be evaluatedpublic int pointsForIndex(Index index)
Evaluator
pointsForIndex
in interface Evaluator
index
- integration index
public 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 |