org.spaceroots.mantissa.functions.scalar
Interface SampledFunctionIterator
-
- All Known Implementing Classes:
- BasicSampledFunctionIterator, EnhancedSimpsonIntegratorSampler, RiemannIntegratorSampler, TrapezoidIntegratorSampler
public interface SampledFunctionIteratorThis interface provides iteration services over scalar functions samples.- See Also:
SampledFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanhasNext()Check if the iterator can provide another point.ScalarValuedPairnextSamplePoint()Get the next point of a sampled function.
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Check if the iterator can provide another point.- Returns:
- true if the iterator can provide another point.
-
nextSamplePoint
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 exhaustedFunctionException- if the underlying function throws one
-
-
DataMelt 3.0 © DataMelt by jWork.ORG