Changeset 2733 for trunk/src/PolynomialInterpolator1D.h
- Timestamp:
- 01/16/13 20:00:01 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PolynomialInterpolator1D.h
r2730 r2733 21 21 * @author TakeshiNakazato 22 22 */ 23 class PolynomialInterpolator1D : public Interpolator1D { 23 template <class T, class U> 24 class PolynomialInterpolator1D : public Interpolator1D<T, U> { 24 25 public: 25 26 // Default constructor. … … 33 34 // by interpolation. 34 35 // @return interpolated value at x. 35 float interpolate(doublex);36 U interpolate(T x); 36 37 private: 37 38 // Perform polynomial interpolation. … … 44 45 // @param[in] n number of data points of sub-region. 45 46 // @return interpolated value at x. 46 float dopoly(doublex, unsigned int left, unsigned int n);47 U dopoly(T x, unsigned int left, unsigned int n); 47 48 }; 48 49 49 50 } 51 52 #include "PolynomialInterpolator1D.tcc" 53 50 54 #endif
Note: See TracChangeset
for help on using the changeset viewer.