|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.functions.scalar.BasicSampledFunctionIterator
This class is a simple wrapper allowing to iterate over a SampledFunction.
The basic implementation of the iteration interface does not perform any transformation on the sample, it only handles a loop over the underlying sampled function.
SampledFunction,
Serialized Form| Constructor Summary | |
BasicSampledFunctionIterator(SampledFunction function)
Simple 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 BasicSampledFunctionIterator(SampledFunction function)
function - smapled function over which we want to iterate| 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 | |||||||||