public interface SampledFunction
extends java.io.Serializable
A function sample is an ordered set of points of the form (x, y) where x is the abscissa of the point and y is the function value at x. It is typically a function that has been computed by external means or the result of measurements.
The ComputableFunctionSampler class can be used to
transform classes implementing the ComputableFunction
interface into classes implementing this interface.
Sampled functions cannot be directly handled by integrators
implementing the SampledFunctionIntegrator. These integrators need a SampledFunctionIterator object to iterate over the
sample.
SampledFunctionIterator,
ComputableFunctionSampler,
ComputableFunction| Modifier and Type | Method and Description |
|---|---|
int |
getDimension()
Get the dimension of the vectorial values of the function.
|
VectorialValuedPair |
samplePointAt(int index)
Get the abscissa and value of the sample at the specified index.
|
int |
size()
Get the number of points in the sample.
|
int size()
int getDimension()
VectorialValuedPair samplePointAt(int index) throws java.lang.ArrayIndexOutOfBoundsException, FunctionException
index - index in the sample, should be between 0 and
size() - 1java.lang.ArrayIndexOutOfBoundsException - if the index is wrongFunctionException - if an eventual underlying function
throws oneCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.