org.spaceroots.mantissa.functions.vectorial
Interface SampledFunctionIterator

All Known Implementing Classes:
BasicSampledFunctionIterator, EnhancedSimpsonIntegratorSampler, RiemannIntegratorSampler, TrapezoidIntegratorSampler

public interface SampledFunctionIterator

This interface provides iteration services over vectorial functions samples.

Version:
$Id: SampledFunctionIterator.java 1666 2005-12-15 16:37:55Z luc $
Author:
L. Maisonobe
See Also:
SampledFunction

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.
 

Method Detail

getDimension

public int getDimension()
Get the dimension of the vectorial values of the function.

Returns:
dimension

hasNext

public boolean hasNext()
Check if the iterator can provide another point.

Returns:
true if the iterator can provide another point.

nextSamplePoint

public VectorialValuedPair nextSamplePoint()
                                    throws ExhaustedSampleException,
                                           FunctionException
Get the next point of a sampled function.

Returns:
the next point of the sampled function
Throws:
ExhaustedSampleException - if the sample has been exhausted
FunctionException - if the underlying function throws one


Copyright © 2001-2007 Luc Maisonobe. All Rights Reserved.