aimsdata  5.1.2
Neuroimaging data handling
lagrange.h File Reference
#include <cstdlib>
#include <aims/config/aimsdata_config.h>
#include <cartobase/exception/assert.h>
#include <vector>
#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::AimsLagrangeInterpolation (const std::vector< REAL > &xa, const std::vector< REAL > &ya, REAL x, REAL *dy)
 Returns the interpolation of a function defined at (xa,ya) points at x (dy is the error) More...