csapsGCV(x,y,p,xx,W​)

Returns optimal cubic smoothing spline using the generalized cross validation method
455.0 次下载
更新时间 2017/6/1

查看许可证

Function similar to csaps. Determines the optimal smoothing parameter using the generalized cross validation method from Craven and Wahba. The function returns the output from a smoothing spline fit, the smoothing parameter, the estimated variance, the magnitude of the estimated 95% confidence interval, and the value of the minimizing function.
The generalized cross validation method for choosing the smoothing parameter should be more robust and give "better" answers than the default choice for csaps. It works for data that is not equally spaced.

The code has not been optimized.

引用格式

Matthew Taliaferro (2024). csapsGCV(x,y,p,xx,W) (https://www.mathworks.com/matlabcentral/fileexchange/63168-csapsgcv-x-y-p-xx-w), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Smoothing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Comprehensive rewrite of code. The method for finding Q has been fixed. Doesn't use a csaps (and therefore ppval). Uses "ordinary" cross-validation for data with less than 30 data points. An improved method for finding an initial guess.

1.1.0.0

Added some extra outputs and imputs to more closely mimic csaps.
Corrected a mistake used when calculating the residual sum of squares. This gave incorrect variance estimates.

1.0.0.0

Added more to the description