|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.quadrature.scalar.RiemannIntegratorSampler
This class implements a Riemann integrator as a sample.
A Riemann integrator is a very simple one that assumes the function is constant over the integration step. Since it is very simple, this algorithm needs very small steps to achieve high accuracy, and small steps lead to numerical errors and instabilities.
This algorithm is almost never used and has been included in this package only as a simple template for more useful integrators.
RiemannIntegrator| Constructor Summary | |
RiemannIntegratorSampler(SampledFunctionIterator iter)
Constructor. |
|
| Method Summary | |
boolean |
hasNext()
Check if the iterator can provide another point. |
ScalarValuedPair |
nextSamplePoint()
Get the next point of a sampled function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RiemannIntegratorSampler(SampledFunctionIterator iter)
throws ExhaustedSampleException,
FunctionException
iter - iterator over the base function| Method Detail |
public boolean hasNext()
SampledFunctionIterator
hasNext in interface SampledFunctionIterator
public ScalarValuedPair nextSamplePoint()
throws ExhaustedSampleException,
FunctionException
SampledFunctionIterator
nextSamplePoint in interface SampledFunctionIteratorFunctionException - if the underlying function throws one
ExhaustedSampleException - if the sample has been exhausted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||