|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represent sampled scalar functions.
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| Method Summary | |
ScalarValuedPair |
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. |
| Method Detail |
public int size()
public ScalarValuedPair samplePointAt(int index)
throws ArrayIndexOutOfBoundsException,
FunctionException
index - index in the sample, should be between 0 and
size() - 1
ArrayIndexOutOfBoundsException - if the index is wrong
FunctionException - if an eventual underlying function
throws one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||