org.spaceroots.mantissa.functions.scalar
Interface SampledFunctionIterator

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

public interface SampledFunctionIterator

This interface provides iteration services over scalar functions samples.

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

Method Summary
 boolean hasNext()
          Check if the iterator can provide another point.
 ScalarValuedPair nextSamplePoint()
          Get the next point of a sampled function.
 

Method Detail

hasNext

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

Returns:
true if the iterator can provide another point.

nextSamplePoint

public ScalarValuedPair 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.