Jafar
|
Cubic interpolation of 1D function. More...
Cubic interpolation of 1D function.
Definition at line 132 of file interpol.hpp.
#include <interpol.hpp>
Public Member Functions | |
void | setSegment (double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3) |
Define the segment that will be interpolated in the general case x0 < x1 < x2 < x3 The interpolation will be between x1 and x2. | |
void | setSegment (double y0, double y1, double y2, double y3) |
Define the segment that will be interpolated in the case where there is a constant x interval x(yi) = C + i*dx The interpolation will be between x(y1) and x(y2) | |
double | interpolateCoeff (double t) |
Interpolate at x1 + t*(x2-x1) with t in [0;1]. | |
double | interpolateValue (double x) |
Interpolate at x with x in [x1;x2]. | |
Private Attributes | |
double | a0 |
double | a1 |
double | a2 |
double | a3 |
double | m1 |
double | m2 |
double | y1 |
double | y2 |
double | x1 |
double | x2 |
bool | constant |
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |