gridripper::math::O5Interpolation Class Reference

Fifth order interpolation. More...

#include <O5Interpolation.h>

List of all members.

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.


Detailed Description

Fifth order interpolation.

Version:
0.5, 12/23/2008
Since:
GridRipper 0.5, 12/12/2008
Author:
Peter Csizmadia

Constructor & Destructor Documentation

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

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


Member Function Documentation

GReal_t gridripper::math::O5Interpolation::interpolate ( GReal_t  x,
int  componentIndex 
) const

Interpolates the data points at coordinate x.

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

GReal_t gridripper::math::O5Interpolation::integrateSection ( int  k,
int  componentIndex 
) const

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:46:55 2009 for GridRipper by  doxygen 1.5.6