source: trunk/src/NearestInterpolator1D.h@ 2732

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

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: 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...

Rewrite implementations for locator and interpolator.
Documentation (doxygen format) is added to header files.


File size: 1.0 KB
RevLine 
[2720]1//
2// C++ Interface: NearestInterpolator1D
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_NEAREST_INTERPOLATOR_1D_H
13#define ASAP_NEAREST_INTERPOLATOR_1D_H
14
15#include <memory>
16#include <vector>
17
18#include <casa/aips.h>
19#include <casa/Containers/Block.h>
20#include <casa/Arrays/Vector.h>
21#include <casa/Arrays/Matrix.h>
22#include <casa/BasicSL/String.h>
23#include <casa/Utilities/CountedPtr.h>
24
25#include "Interpolator1D.h"
26
27namespace asap {
28
29/**
[2730]30 * Implementation of nearest interpolation.
[2720]31 * @author TakeshiNakazato
32 */
33class NearestInterpolator1D : public Interpolator1D {
34public:
[2730]35 // Default constructor.
[2720]36 NearestInterpolator1D();
37
[2730]38 // Destructor.
[2720]39 virtual ~NearestInterpolator1D();
40
[2730]41 // Perform interpolation.
42 // @param[in] x horizontal location where the value is evaluated
43 // by interpolation.
44 // @return interpolated value at x.
45 // @see Interpolator1D::interpolate()
[2720]46 float interpolate(double x);
47};
48
49}
50#endif
Note: See TracBrowser for help on using the repository browser.