This is a reference implementation in Matlab for the algorithms described in the paper
M. Storath, A. Weinmann, "Smoothing splines for discontinuous signals", Journal of Computational and Graphical Statistics, 2023, [Preprint]
-
cssd.m computes a cubic smoothing spline with discontinuities (CSSD) for data (x,y). It is a solution of the following model of a smoothing spline
with a-priori unknown discontinuities
where
-
are samples of piecewise smooth function at data sites , and an estimate of the standard deviation of the errors - the minimum is taken over all possible sets of discontinuities between two data sites
and all functions that are twice continuously differentiable away from the discontinuities. - The model parameter
controls the relative weight of the smoothness term (second term) and the data fidelity term. - The last term is a penalty for the number of discontinuities
weighted by a parameter
-
cssd_cv.m automatically determines values for the model parameters
and based on K-fold cross validation.
- Execute "install_cssd.m" which adds the folder and all subfolders to the Matlab path.
- Execute any m-file from the demos folder
M. Storath, A. Weinmann, "Smoothing splines for discontinuous signals", Journal of Computational and Graphical Statistics, 2023