gridripper::math::O5Interpolation Class Reference

Fifth order interpolation. More...

List of all members.

Public Member Functions

 O5Interpolation (double[] xarr, double[] yarr) throws IllegalArgumentException
 Constructs the interpolator.
double interpolate (double x, int componentIndex)
 Interpolates the data points at coordinate x.
double integrateSection (int k, int componentIndex)
 Integrates the area under the interpolated function between two neighboring data points.

Static Public Member Functions

static void main (String[] args) throws Exception


Detailed Description

Fifth order interpolation.

Version:
0.5, 05/25/2009
Since:
GridRipper 0.5, 05/25/2009
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::math::O5Interpolation::O5Interpolation ( double[]  xarr,
double[]  yarr 
) throws IllegalArgumentException [inline]

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).

Parameters:
xarr the array of x coordinates
yarr the array of y coordinates


Member Function Documentation

double gridripper::math::O5Interpolation::interpolate ( double  x,
int  componentIndex 
) [inline]

Interpolates the data points at coordinate x.

Parameters:
x the x coordinate
componentIndex the index of the component to integrate
Returns:
the interpolated value

double gridripper::math::O5Interpolation::integrateSection ( int  k,
int  componentIndex 
) [inline]

Integrates the area under the interpolated function between two neighboring data points.

Parameters:
k the index of the section to integrate, i.e. the index of its first point
componentIndex the index of the component to integrate
Returns:
the area


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:47:29 2009 for GridRipper by  doxygen 1.5.6