37 #ifndef AIMS_MATH_LAGRANGE_H 38 #define AIMS_MATH_LAGRANGE_H 61 int i,m,ns=0,n=std::min(xa.
dimX(),ya.
dimX());
62 REAL den,dif,dift,ho,hp,w;
70 if ((dift = fabs(x-xa(i))) < dif) {
84 ASSERT( (den = ho - hp) != 0.0 );
89 y += (*dy=(2*ns+2 < (n-m) ? c[ns+1] : d[ns--]));
101 return AimsLagrangeInterpolationOf<float>( xa, ya, x, dy );
AIMSDATA_API REAL 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) ...
float AimsLagrangeInterpolation(const AimsData< float > &xa, const AimsData< float > &ya, float x, float *dy)
The class for EcatSino data write operation.