Fitpack Library- How to use it?
Posted: Sat Oct 13, 2018 8:46 pm
Could somebody help me with this simple example so I can understand how this function works?
I have 10 measurements y every, one per hour.
Now I wan to analyse this data in 5 minutes frame resolution so I need to fit a curve of 120 points at this 10 points (x,y) .
I create the 3 dimensional fit.gdx file that the fitfclib function needs.
And then I write this:
$funclibin fitcurve fitfclib
function fitp /fitcurve.fitparam/
fit /fitcurve.fitfunc / ;
But I don't understand from the gams documentation (https://www.gams.com/latest/testlib_ml/ ... lib_fitlib) how to use the fit function and take the resulting curve. I attached the .gms file.
I have 10 measurements y every, one per hour.
Now I wan to analyse this data in 5 minutes frame resolution so I need to fit a curve of 120 points at this 10 points (x,y) .
I create the 3 dimensional fit.gdx file that the fitfclib function needs.
And then I write this:
$funclibin fitcurve fitfclib
function fitp /fitcurve.fitparam/
fit /fitcurve.fitfunc / ;
But I don't understand from the gams documentation (https://www.gams.com/latest/testlib_ml/ ... lib_fitlib) how to use the fit function and take the resulting curve. I attached the .gms file.