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
History
all function has briefly implemented.;
2016-05-30, by aktk [Mon, 30 May 2016 09:18:50 +0000] rev 13
all function has briefly implemented.;
value of y dont modified except in ival:0. In ival:1~_Sample_Num-2 y = getY(x) all has the value of the biggest value of y in ival:0.
2016-05-29, by aktk [Sun, 29 May 2016 12:15:19 +0000] rev 12
value of y dont modified except in ival:0. In ival:1~_Sample_Num-2 y = getY(x) all has the value of the biggest value of y in ival:0.
In _solve_cubic_f, pow(u,1/3) -> exp(log(u)/3)
2016-05-29, by aktk [Sun, 29 May 2016 09:31:44 +0000] rev 11
In _solve_cubic_f, pow(u,1/3) -> exp(log(u)/3)
in _solve_cubic_f, only if t_sol is in a interval, it is push_back()ed into t_real. ; And, if no t_real member, return last point.
2016-05-29, by aktk [Sun, 29 May 2016 09:23:24 +0000] rev 10
in _solve_cubic_f, only if t_sol is in a interval, it is push_back()ed into t_real. ; And, if no t_real member, return last point.
debugging: (the_t, the_i) now comes to (0,0) unexpectedly
2016-05-29, by aktk [Sun, 29 May 2016 09:14:54 +0000] rev 9
debugging: (the_t, the_i) now comes to (0,0) unexpectedly
function to save and load the data has been implemented.
2016-05-26, by aktk [Thu, 26 May 2016 04:50:45 +0000] rev 8
function to save and load the data has been implemented.
function to solve cubic polynomial formula has been implemented.
2016-05-24, by aktk [Tue, 24 May 2016 17:37:27 +0000] rev 7
function to solve cubic polynomial formula has been implemented.
rename: _makeSpline |-> _makeModel
2016-05-20, by aktk [Fri, 20 May 2016 14:28:42 +0000] rev 6
rename: _makeSpline |-> _makeModel
_makeModel's parameters were modified.
2016-05-20, by aktk [Fri, 20 May 2016 14:27:51 +0000] rev 5
_makeModel's parameters were modified.
_makeSpline() might have been refactored.
2016-05-20, by aktk [Fri, 20 May 2016 14:25:39 +0000] rev 4
_makeSpline() might have been refactored.