Linear interpolation of two arrays.
More...
#include <linear.h>
Linear interpolation of two arrays.
Definition at line 16 of file linear.h.
Maths::Interpolation::Linear::Linear |
( |
int |
n, |
|
|
double * |
x, |
|
|
double * |
y |
|
) |
| |
|
inline |
Linear interpolation constructor
- Parameters
-
n | - length of arrays |
*x | - pointer to start of array x |
*y | - pointer to start of array y |
Definition at line 25 of file linear.h.
Maths::Interpolation::Linear::~Linear |
( |
| ) |
|
|
inline |
Linear interpolation destructor free memory of m_x and m_y
Definition at line 39 of file linear.h.
double Maths::Interpolation::Linear::getValue |
( |
double |
x | ) |
|
|
inline |
Obtains the value from interpolating the two arrays nearest to x
- Parameters
-
x | - value for which to interpolate at |
Definition at line 47 of file linear.h.
The documentation for this class was generated from the following file:
- EPSS/VERB/verb-2-0/Matrix/Interpolation/linear.h