Is it possible to specify the 'order' of a smoothing spline?
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Shojaei Arani
am 14 Aug. 2022
Kommentiert: Mohammad Shojaei Arani
am 15 Aug. 2022
Hello,
I need to use smoothing splines. The matlab command 'csaps' can only be used for the case of a cubic smoothing
spline. On the other hand, the command '[...] = spaps(x,y,tol,[],m)' might be helpful to choose the order. But, there are a
range of difficulties with this command. First, we have to specify the tolerance 'tol' (I do not like to specify anything like tolerance or
smoothing parameter and woulds like the algorithm to choose the default). Second, m can only be 1(linear case), 2(cubic case), or 3 (
the quintic case). In my work I really need to use the 'quadratic smoothin splines'.
If I would like to do 'spline interpolation', instead, I could use the command 'spapi(k,x,y)' and choose k=3 for the case of quadratic spline interpolation. Is there a similar matlab command for smoothing splines? Something like 'spaps(k,x,y)' with no extra inputs like 'tolerance' or 'smoothing parameter' or 'weight'?
If MATLAB does not have the above-mentioned capability then this is a really 'annoying problem' which could be easily prevented by
the developers of spline toolbox. You might think that cubic smoothing splines are sufficient and there really is no need for a parabolic smoothing splines. If you are interested I can give you some important mathematical problems which really need the quadratic smoothing splines.
Any idea?
Thanks in advance!
Babak
13 Kommentare
Akzeptierte Antwort
Bruno Luong
am 14 Aug. 2022
See if this can helps you
6 Kommentare
Torsten
am 14 Aug. 2022
Bearbeitet: Torsten
am 14 Aug. 2022
If I would have access to a quntum computer I would never bother you. I would, then, use cubic splines and would not even think to use parabolic splines.
You are kidding, aren't you ? My guess is that you will not even notice the difference in in computation time if you use parabolic instead of cubic spline interpolation/approximation.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Splines finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!