43 #ifndef INTERPOLATION_HPP
44 #define INTERPOLATION_HPP 1
62 std::vector<double>
_f;
71 const double &
__f(
int i,
int j )
const;
72 double &
__f(
int i,
int j );
85 virtual double operator()(
double x,
double y )
const = 0;
112 virtual double operator()(
double x,
double y )
const;
136 virtual double operator()(
double x,
double y )
const;
148 std::vector<double> _fx;
149 std::vector<double> _fy;
150 std::vector<double> _fxy;
151 std::vector<double> _c;
156 const double &__fx(
int i,
int j )
const;
157 const double &__fy(
int i,
int j )
const;
158 const double &__fxy(
int i,
int j )
const;
160 double &__fx(
int i,
int j );
161 double &__fy(
int i,
int j );
162 double &__fxy(
int i,
int j );
164 static void calc_coefs(
double *c,
double *x );
165 static const double wt[16][16];
182 virtual double operator()(
double x,
double y )
const;
virtual ~ClosestInterpolation2D()
Destructor.
Definition: interpolation.hpp:105
Base class for 2d interpolation.
Definition: interpolation.hpp:56
ClosestInterpolation2D(size_t n, size_t m, const std::vector< double > &f)
Constructor.
std::vector< double > _f
Function data mesh.
Definition: interpolation.hpp:62
const double & __f(int i, int j) const
virtual double operator()(double x, double y) const
Operator for getting interpolation at (x,y).
virtual ~BiLinearInterpolation2D()
Destructor.
Definition: interpolation.hpp:129
Interpolation2D(size_t n, size_t m, const std::vector< double > &f)
Constructor.
Closest point 2d interpolation.
Definition: interpolation.hpp:94
BiCubic 2d interpolation.
Definition: interpolation.hpp:145
BiLinearInterpolation2D(size_t n, size_t m, const std::vector< double > &f)
Constructor.
virtual ~Interpolation2D()
Virtual destructor.
Definition: interpolation.hpp:78
size_t _m
Size of second coordinate of mesh.
Definition: interpolation.hpp:61
virtual ~BiCubicInterpolation2D()
Destructor.
Definition: interpolation.hpp:175
BiLinear 2d interpolation.
Definition: interpolation.hpp:118
virtual double operator()(double x, double y) const =0
Operator for getting interpolation at (x,y).
virtual double operator()(double x, double y) const
Operator for getting interpolation at (x,y).
BiCubicInterpolation2D(size_t n, size_t m, const std::vector< double > &f)
Constructor.
virtual double operator()(double x, double y) const
Operator for getting interpolation at (x,y).
size_t _n
Size of first coordinate of mesh.
Definition: interpolation.hpp:60