Ignore:
Timestamp:
01/16/13 20:00:01 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Redefined Interpolator1D and derived classes as template class.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PolynomialInterpolator1D.h

    r2730 r2733  
    2121 * @author TakeshiNakazato
    2222 */
    23 class PolynomialInterpolator1D : public Interpolator1D {
     23template <class T, class U>
     24class PolynomialInterpolator1D : public Interpolator1D<T, U> {
    2425public:
    2526  // Default constructor.
     
    3334  //              by interpolation.
    3435  // @return interpolated value at x.
    35   float interpolate(double x);
     36  U interpolate(T x);
    3637private:
    3738  // Perform polynomial interpolation.
     
    4445  // @param[in] n number of data points of sub-region.
    4546  // @return interpolated value at x.
    46   float dopoly(double x, unsigned int left, unsigned int n);
     47  U dopoly(T x, unsigned int left, unsigned int n);
    4748};
    4849
    4950}
     51
     52#include "PolynomialInterpolator1D.tcc"
     53
    5054#endif
Note: See TracChangeset for help on using the changeset viewer.