簡體   English   中英

有沒有匹配勛伯格算法的R樣條?

[英]Is there an R spline that matches the Schoenberg algorithm?

是否有 R 算法可以在最小化 L 的同時擬合平滑樣條,

L = ρ ∑ (i from 0 to n-1) wi(yi-Si(xi))² + (1 - ρ) ∫ (x from 0 to x_(n-1)) (S''(x)) ² dx

也許 smooth.spline 是可能的,但我沒有成功找到好的參數。

(這里的方程可以看的更清楚: https://www.iro.umontreal.ca/~simardr/ssj/doc/html/umontreal/iro/lecuyer/functionfit/SmoothingCubicSpline.html

pspline::smooth.Pspline(  x = input_x,
                          y = input_y, 
                          norder = 2, 
                          method = 1,
                          spar = rho)

會做的工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM