|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.quadrature.vectorial.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 | |
int |
getDimension()
Get the dimension of the vectorial values of the function. |
boolean |
hasNext()
Check if the iterator can provide another point. |
VectorialValuedPair |
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 SampledFunctionIteratorpublic int getDimension()
SampledFunctionIterator
getDimension in interface SampledFunctionIterator
public VectorialValuedPair nextSamplePoint()
throws ExhaustedSampleException,
FunctionException
SampledFunctionIterator
nextSamplePoint in interface SampledFunctionIteratorExhaustedSampleException - if the sample has been exhausted
FunctionException - if the underlying function throws one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||