This lib is considered to be used as a sensor's calibration program. Calibration with Spline Interpolation might be useful in the case that you want some model expressing relationship such like between a value of physical quantity and your sensor's voltage, but you cannot estimate a model such as liner, square, cubic polynomial, or sine curve. This makes (Parametric) Cubic Spline Polynomial Model (Coefficients of the polynomial) from some sample plots(e.g. sets of (value, voltage)). The inverse function (x,y)->(y,x) has been implemented so as to get analog data (not stepping or leveled data).

Fork of TRP105F_Spline by Akifumi Takahashi

Revision:
5:bfb6dbd37aa4
Parent:
4:8db89b731133
Child:
7:e032ddec6ed5
--- a/CubicSpline.h	Fri May 20 14:25:39 2016 +0000
+++ b/CubicSpline.h	Fri May 20 14:27:51 2016 +0000
@@ -61,8 +61,8 @@
     //  For calibration
     //
     void    _sampleData();
-    void    _makeModel();       //  generate a vector of _u_params which is used for Cubic spline model
-    enum 
+    //  generate a vector of _u_params which is used for Cubic spline model
+    void    _makeModel(double* arg_t, double* arg_ft, double* arg_C[4], unsigned int arg_num);
     unsigned short _get(double);
     //
     //  For debug