s-watanabe-jhod / garpos

GARPOS is an analysis tool for GNSS-Acoustic seafloor positioning
GNU General Public License v3.0
20 stars 21 forks source link

There may be a bug for function "derivative2" in setup_model.py #1

Open geodesy opened 3 years ago

geodesy commented 3 years ago

The 2nd derivative matrix of the B-spline basis should be (delta.T @ w^(-1)) @ delta, not (delta.T @ w) @ delta. The formula can be fond in the book "Nonparametric Regression and Generalized Linear Models A roughness penalty approach" by P.J. Green, Bernard. W. Silverman, page 25