// // C++ Interface: NearestInterpolator1D // // Description: // // // Author: Takeshi Nakazato , (C) 2012 // // Copyright: See COPYING file that comes with this distribution // // #ifndef ASAP_NEAREST_INTERPOLATOR_1D_H #define ASAP_NEAREST_INTERPOLATOR_1D_H #include #include #include #include #include #include #include #include #include "Interpolator1D.h" namespace asap { /** * Implementation of nearest interpolation. * @author TakeshiNakazato */ template class NearestInterpolator1D : public Interpolator1D { public: // Default constructor. NearestInterpolator1D(); // Destructor. virtual ~NearestInterpolator1D(); // Perform interpolation. // @param[in] x horizontal location where the value is evaluated // by interpolation. // @return interpolated value at x. // @see Interpolator1D::interpolate() U interpolate(T x); }; } #include "NearestInterpolator1D.tcc" #endif