Last change
on this file since 2729 was 2727, checked in by Takeshi Nakazato, 12 years ago |
New Development: No
JIRA Issue: Yes CAS-4770, CAS-4774
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...
Updated STApplyCal to be able to specify interpolation method.
The method can be specified in time and frequency axes independently.
Possible options are nearest, linear (default), (natural) cubic spline,
and polynomial with arbitrary order.
|
File size:
723 bytes
|
Rev | Line | |
---|
[2720] | 1 | //
|
---|
| 2 | // C++ Interface: Locator
|
---|
| 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_LOCATOR_H
|
---|
| 13 | #define ASAP_LOCATOR_H
|
---|
| 14 |
|
---|
| 15 | namespace asap {
|
---|
| 16 |
|
---|
| 17 | /**
|
---|
| 18 | * Base class for locate operation
|
---|
| 19 | * @author TakeshiNakazato
|
---|
| 20 | */
|
---|
| 21 | class Locator {
|
---|
| 22 | public:
|
---|
| 23 | Locator() {;}
|
---|
| 24 | Locator(double *v, unsigned int n);
|
---|
| 25 | void set(double *v, unsigned int n);
|
---|
| 26 |
|
---|
| 27 | virtual ~Locator();
|
---|
| 28 |
|
---|
| 29 | // return right hand side index of location
|
---|
| 30 | // (return j+1 if x[j] < x <= x[j+1])
|
---|
| 31 | // return value 0 or x.nelements() indicates out of range
|
---|
| 32 | virtual unsigned int locate(double x) = 0;
|
---|
| 33 |
|
---|
| 34 | protected:
|
---|
| 35 | double *x_;
|
---|
| 36 | unsigned int n_;
|
---|
| 37 | };
|
---|
| 38 |
|
---|
| 39 | }
|
---|
| 40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.