|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.quadrature.EnhancedSimpsonIntegratorSampler
public class 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(SampledMappingIterator iter)
Constructor. |
|
| Method Summary | |
|---|---|
SampledMapping |
getSampledMapping()
DOCUMENT ME! |
boolean |
hasNext()
Check if the iterator can provide another point. |
ValuedPair |
next()
Get the next point of a sampled function. |
void |
remove()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnhancedSimpsonIntegratorSampler(SampledMappingIterator iter)
throws ExhaustedSampleException,
MappingException
iter - iterator over the base function
ExhaustedSampleException
MappingException| Method Detail |
|---|
public SampledMapping getSampledMapping()
SampledMappingIterator
getSampledMapping in interface SampledMappingIteratorpublic boolean hasNext()
SampledMappingIterator
hasNext in interface SampledMappingIterator
public ValuedPair next()
throws ExhaustedSampleException,
MappingException
SampledMappingIterator
next in interface SampledMappingIteratorExhaustedSampleException - if the sample has been exhausted
MappingException - if the underlying function throws onepublic void remove()
SampledMappingIterator
remove in interface SampledMappingIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||