source: trunk/src/LinearInterpolator1D.h@ 2779

Last change on this file since 2779 was 2733, checked in by Takeshi Nakazato, 12 years ago

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 size: 894 bytes
Line 
1//
2// C++ Interface: LinearInterpolator1D
3//
4// Description:
5//
6//
7// Author: Takeshi Nakazato <takeshi.nakazato@nao.ac.jp>, (C) 2012
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef ASAP_LINEAR_INTERPOLATOR_1D_H
13#define ASAP_LINEAR_INTERPOLATOR_1D_H
14
15#include "Interpolator1D.h"
16
17namespace asap {
18
19/**
20 * Implementation of linear interpolation
21 * @author TakeshiNakazato
22 */
23template <class T, class U>
24class LinearInterpolator1D : public Interpolator1D<T, U> {
25public:
26 // Default constructor.
27 LinearInterpolator1D();
28
29 // Destructor.
30 virtual ~LinearInterpolator1D();
31
32 // Perform interpolation.
33 // @param[in] x horizontal location where the value is evaluated
34 // by interpolation.
35 // @return interpolated value at x.
36 // @see Interpolator1D::interpolate()
37 U interpolate(T x);
38};
39
40}
41
42#include "LinearInterpolator1D.tcc"
43
44#endif
Note: See TracBrowser for help on using the repository browser.