37 #ifndef AIMS_MATH_ROMBERGITG_H 38 #define AIMS_MATH_ROMBERGITG_H 72 REAL a, REAL b )
const 81 for (
int j = 0; j < _jmax; j++ )
84 s( j ) = integrator.
stage( func, a, b, j + 1 );
88 for (
int kk = 0; kk < _k; kk++ )
90 tmph( kk ) = h( j - _k + kk + 1 );
91 tmps( kk ) = s( j - _k + kk + 1 );
93 ss = AimsLagrangeInterpolationOf<REAL>( tmph, tmps, 0.0, &dss );
94 if ( fabs( dss ) <= _eps * fabs( ss ) )
97 h( j + 1 ) = 0.25 * h( j );
The class for EcatSino data write operation.
RombergIntegratorOf(const REAL &eps, int jmax, int k)
RombergIntegratorOf< float > RombergIntegrator
virtual ~RombergIntegratorOf()
virtual REAL eval(const Integrable &func, REAL a, REAL b) const
virtual REAL stage(const Integrable &func, REAL a, REAL b, int n) const