#include <linearInterp.h>
|
| std::vector< double > * | X |
| | abscissas for Y(X)
|
| |
| std::vector< double > * | Y |
| | ordinate values for Y(X)
|
| |
| int | nxy |
| | number of grid points
|
| |
|
| int | ilo |
| | lower of adjacent bounding grid points for desired interpolation point
|
| |
| int | ihi |
| | upper of adjacent bounding grid points for desired interpolation point
|
| |
Linear interpolation class (one-dimensional) Header-only class
Definition at line 14 of file linearInterp.h.
◆ linearInterp() [1/2]
| linearInterp::linearInterp |
( |
| ) |
|
|
inline |
◆ linearInterp() [2/2]
| linearInterp::linearInterp |
( |
std::vector< double > & |
_X, |
|
|
std::vector< double > & |
_Y |
|
) |
| |
|
inline |
constructor function
- Parameters
-
| _X | grid of abscissas forming the basis for interpolation |
| _Y | grid of ordinate values _Y(_X) forming the basis for interpolation |
Definition at line 68 of file linearInterp.h.
◆ interp()
| double linearInterp::interp |
( |
double |
x | ) |
|
|
inline |
Interpolation function for arbitrary point x.
- Parameters
-
| x | input: grid value we are interpolating to (abscissa) |
- Returns
- interpolated value y(x)
Definition at line 35 of file linearInterp.h.
◆ set_bounding_indicies()
| void linearInterp::set_bounding_indicies |
( |
double |
x | ) |
|
|
inlineprivate |
find values of ilo and ihi using a search algorithm from stl
- Parameters
-
| x | input: grid value we are interpolating to (abscissa) |
Definition at line 44 of file linearInterp.h.
| std::vector<double>* linearInterp::X |
| std::vector<double>* linearInterp::Y |
◆ nxy
◆ ilo
lower of adjacent bounding grid points for desired interpolation point
Definition at line 25 of file linearInterp.h.
◆ ihi
upper of adjacent bounding grid points for desired interpolation point
Definition at line 26 of file linearInterp.h.
The documentation for this class was generated from the following file: