OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
HermiteInterpolator.h
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #ifndef HermiteInterpolator_h
13 #define HermiteInterpolator_h
14 
16 
17 namespace ossimplugins
18 {
19 
20 
21 
27 {
28 public:
33 
41  HermiteInterpolator(int nbrPoints, double* x, double* y, double* dy);
42 
47 
52 
56  HermiteInterpolator& operator =(const HermiteInterpolator& rhs);
57 
65  int Interpolate(double x, double& y, double& dy) const;
66 
73  int Interpolate(double x, double& y) const;
74 
75 protected:
76 
77  void Clear();
79  double* theXValues;
80  double* theYValues;
81  double* thedYValues;
82 
83  mutable double* prodC;
84  mutable double* sumC;
85  mutable bool isComputed;
86 
87  int Precompute() const; // const in a semantic way
88 
89 
90 private:
91 };
92 }
93 
94 #endif
95 
96 
ossim_uint32 x
ossim_uint32 y
#define OSSIM_PLUGINS_DLL