public class BasicSampledFunctionIterator extends java.lang.Object implements SampledFunctionIterator, java.io.Serializable
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 and Description |
|---|
BasicSampledFunctionIterator(SampledFunction function)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BasicSampledFunctionIterator(SampledFunction function)
function - smapled function over which we want to iteratepublic int getDimension()
SampledFunctionIteratorgetDimension in interface SampledFunctionIteratorpublic boolean hasNext()
SampledFunctionIteratorhasNext in interface SampledFunctionIteratorpublic VectorialValuedPair nextSamplePoint() throws ExhaustedSampleException, FunctionException
SampledFunctionIteratornextSamplePoint in interface SampledFunctionIteratorExhaustedSampleException - if the sample has been exhaustedFunctionException - if the underlying function throws oneCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.