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:
13:9a51747773af
Parent:
9:1903c6f8d5a9
--- a/CubicSpline.h	Sun May 29 12:15:19 2016 +0000
+++ b/CubicSpline.h	Mon May 30 09:18:50 2016 +0000
@@ -12,6 +12,13 @@
 #ifndef Cubic_Spline_H
 #define Cubic_Spline_H
 
+#define DEBUG
+#define VERSION_C
+//#define DEBUG_MAKE_MODEL
+//#define DEBUG_SOLVE
+//#define DEBUG_GETX "DEBUG_GETX\n"
+//#define DEBUG_GETY "DEBUG_GETY\n"
+
 #include "mbed.h"
 #include <cmath>
 #include <complex>