Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::jmath::CubicInterpolate Class Reference

Cubic interpolation of 1D function. More...


Detailed Description

Cubic interpolation of 1D function.

Definition at line 132 of file interpol.hpp.

#include <interpol.hpp>

List of all members.

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1
LAAS-CNRS