I am trying to spline fit kinematic data to get it with a sample frequency equal to the ground reaction forces (1000Hz) but I am not succeeding very well with this.
I think I successfully managed to create the simmsplines with the following
Code: Select all
SimmSpline rSpline, lSpline;
for(int i=1; i<MTime.getSize()-1;i++){
rSpline.addPoint(MTime[i],vRMF[i]);
lSpline.addPoint(MTime[i],vLMF[i]);
}
From here I thought I could use the function
Code: Select all
double aValue = rSpline.calcValue(x)
So my question is how does this work with the SimmSpline? All I want is an array or vector with interpolated 'Y' values from the cubic spline fit with a given set of data.
Best regards,
Erik