How can we implement the following algorithm in MATLAB?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, we are using smoothing splines to fit some curves. we have one problem: we need to choose the value of smoothing parameter. one possible solution to this problem is cross-validation. I found one reference THE CROSS-VALIDATION METHOD IN THE SMOOTHING SPLINE REGRESSION explaining the algorthim of this, but I am not sure how this can be implemented in matlab. The data I am trying to fit is attached and I am using csaps() to fit it. Kindly if anyone can help me out in how we can implement it.
1 件のコメント
Daniel
2023 年 5 月 24 日
I think it might help to see an example of how far you've gotten with the code for your current attempt and what your questions are in relation to it. It looks like you're asking how to use csaps, but we're not going to be more helpful than the documentation unless we can see more clearly where you're running into problems. You can submit executable code by pressing Alt+Enter to create a code area; then press Alt+Enter again to leave it. You can execute the code within a code area to make sure it works by clicking the play icon in the Run area.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!