36 #ifndef AIMS_FFD_TABULSPLINE_H 37 #define AIMS_FFD_TABULSPLINE_H 49 TabulSpline( std::string name,
int order = 3,
int length = 65537,
int factor = 2);
52 int index(
double u )
const;
53 bool isvalid(
int index )
const;
58 float dump(
int i )
const {
return _splineCoef[i];}
66 float *_derivatedSplineCoef ;
72 return _splineTabLength;
84 return (
int)( fabs(u) * (_splineTabLength - 1) / _factor );
90 return ( index >= 0 && index < _splineTabLength );
104 return _splineCoef[ i ] ;
120 return _derivatedSplineCoef[ i ];
122 return(- _derivatedSplineCoef[ i ]);
int index(double u) const
bool isvalid(int index) const
float spline3(double) const
TabulSpline(std::string name, int order=3, int length=65537, int factor=2)
std::string toString(const T &object)
float spline3derivative(double) const
#define cartoDbgMsg(level, message)