source: trunk/src/BisectionLocator.h @ 2720

Last change on this file since 2720 was 2720, checked in by Takeshi Nakazato, 11 years ago

New Development: Yes

JIRA Issue: Yes CAS-4770 and its sub-tickets

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...

First version of applycal for single dish calibration.
Added new classes for the operation (STApplyCal, Calibrator, PSAlmaCalibrator,
Locator, BisectionLocator?, Interpolator1D, NearestInterpolator1D).
Also, modified existing classes to fit with implementation of applycal.


File size: 803 bytes
Line 
1//
2// C++ Interface: BisectionLocator
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_BISECTION_LOCATOR_H
13#define ASAP_BISECTION_LOCATOR_H
14
15#include <memory>
16#include <vector>
17
18#include <casa/aips.h>
19#include <casa/Arrays/Vector.h>
20#include <casa/Arrays/Matrix.h>
21#include <casa/BasicSL/String.h>
22#include <casa/Utilities/CountedPtr.h>
23
24#include "Locator.h"
25
26namespace asap {
27
28/**
29 * Implementation of locate operation by bisection search
30 * @author TakeshiNakazato
31 */
32class BisectionLocator : public Locator {
33public:
34  BisectionLocator() {;}
35  BisectionLocator(double *v, unsigned int n);
36
37  virtual ~BisectionLocator();
38
39  unsigned int locate(double x);
40};
41
42}
43#endif
Note: See TracBrowser for help on using the repository browser.