|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.quadrature.TrapezoidNDIntegratorSampler
public class TrapezoidNDIntegratorSampler
This class implements a trapezoid integrator as a sample.
A trapezoid 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.
TrapezoidIntegrator| Constructor Summary | |
|---|---|
TrapezoidNDIntegratorSampler(SampledMappingIterator iter)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getDimension()
|
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 TrapezoidNDIntegratorSampler(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 SampledMappingIteratorpublic int getDimension()
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 | ||||||||