I'm trying to convert some matlab code into python using numpy and scipy.
Here is the matlab code :
pp=csaps(Data(:,1),Data(:,2),0.9999);
new_data= ppval(pp,Data(:,1));
In python, I replace csaps
by the SmoothSpline
function from pywafo library. But I'm not able to find any function to replace ppval
.
Here is the current python code:
pp = SmoothSpline(Data[0], Data[1], 0.9999)
new_data = pp(Data[0]) # should use ppval?
Any idea? Thanks in advance!