|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.spaceroots.mantissa.functions.vectorial.BasicSampledFunctionIterator
This class is a 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 | |
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 BasicSampledFunctionIterator(SampledFunction function)
function - smapled function over which we want to iterate| Method Detail |
public int getDimension()
SampledFunctionIterator
getDimension in interface SampledFunctionIteratorpublic boolean hasNext()
SampledFunctionIterator
hasNext 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 | |||||||||