#include <O5Interpolation.h>
Public Member Functions | |
| O5Interpolation (const tvector< GReal_t > &xarr, const tvector< GReal_t > &yarr) throw (IllegalArgumentException&) | |
| Constructs the interpolator. | |
| GReal_t | interpolate (GReal_t x, int componentIndex) const |
| Interpolates the data points at coordinate x. | |
| GReal_t | integrateSection (int k, int componentIndex) const |
| Integrates the area under the interpolated function between two neighboring data points. | |
| gridripper::math::O5Interpolation::O5Interpolation | ( | const tvector< GReal_t > & | xarr, | |
| const tvector< GReal_t > & | yarr | |||
| ) | throw (IllegalArgumentException&) |
Constructs the interpolator.
The size of the y coordinate array must be equal to or nc times the x array size, where nc is the number of components (usually 1).
| xarr | the array of x coordinates | |
| yarr | the array of y coordinates |
Interpolates the data points at coordinate x.
| x | the x coordinate | |
| componentIndex | the index of the component to integrate |
| GReal_t gridripper::math::O5Interpolation::integrateSection | ( | int | k, | |
| int | componentIndex | |||
| ) | const |
Integrates the area under the interpolated function between two neighboring data points.
| k | the index of the section to integrate, i.e. the index of its first point | |
| componentIndex | the index of the component to integrate |
1.5.6