36 #ifndef AIMS_FFD_TABULSPLINE_H
37 #define AIMS_FFD_TABULSPLINE_H
48 TabulSpline( std::string name,
int order = 3,
int length = 65537,
int factor = 2);
51 int index(
double u )
const;
57 float dump(
int i )
const {
return _splineCoef[i];}
65 float *_derivatedSplineCoef ;
71 return _splineTabLength;
83 return (
int)( fabs(u) * (_splineTabLength - 1) / _factor );
89 return (
index >= 0 &&
index < _splineTabLength );
103 return _splineCoef[ i ] ;
119 return _derivatedSplineCoef[ i ];
121 return(- _derivatedSplineCoef[ i ]);
bool isvalid(int index) const
float spline3(double) const
float spline3derivative(double) const
TabulSpline(std::string name, int order=3, int length=65537, int factor=2)
int index(double u) const
std::string toString(const T &object)
#define cartoDbgMsg(level, message)