A.I.M.S


lagrange.h File Reference
#include <cstdlib>
#include <aims/config/aimsdata_config.h>
#include <aims/data/data.h>
#include <math.h>
Include dependency graph for lagrange.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 aims
 The class for EcatSino data write operation.
 

Functions

Lagrange's polynomial interpolation.

This implementation uses Neville's algorithm that is a recursive way.

template<class REAL >
AIMSDATA_API REAL aims::AimsLagrangeInterpolationOf (const AimsData< REAL > &xa, const AimsData< REAL > &ya, REAL x, REAL *dy)
 Returns the interpolation of a function defined at (xa,ya) points at x (dy is the error) More...
 
float aims::AimsLagrangeInterpolation (const AimsData< float > &xa, const AimsData< float > &ya, float x, float *dy)