|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.quadrature.scalar.EnhancedSimpsonIntegratorSampler
This class implements an enhanced Simpson integrator as a sample.
A traditional Simpson integrator is based on a quadratic approximation of the function on three equally spaced points. This integrator does the same thing but can handle non-equally spaced points. If it is used on a regular sample, it behaves exactly as a traditional Simpson integrator.
EnhancedSimpsonIntegrator| Constructor Summary | |
EnhancedSimpsonIntegratorSampler(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 EnhancedSimpsonIntegratorSampler(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 | |||||||||