gramods
Loading...
Searching...
No Matches
DelaunayInterpolator.hh
1
5#ifndef GRAMODS_MISC_DELAUNAYINTERPOLATOR
6#define GRAMODS_MISC_DELAUNAYINTERPOLATOR
7
8#include <gmMisc/config.hh>
9
10#if defined(gramods_ENABLE_Eigen3) && defined(gramods_ENABLE_Lehdari_Delaunay)
11
12#include <memory>
13#include <vector>
14
15BEGIN_NAMESPACE_GMMISC
16
20class DelaunayInterpolator {
21
22public:
29 DelaunayInterpolator(size_t idim, size_t odim);
30 ~DelaunayInterpolator();
31
42 void addSample(const std::vector<double> &inval,
43 const std::vector<double> &outval);
44
51 std::vector<double> getValue(const std::vector<double> &inval);
52
53private:
54
55 struct Impl;
56 std::unique_ptr<Impl> _impl;
57
58};
59
60END_NAMESPACE_GMMISC
61
62#endif
63#endif