This is a cpp function used for R function l0fused.
l0fused_c(y, T0, max_steps)Response sequence to be fitted.
Number of knots in the piecewise constant(breaks in the derivative), i.e., the same as s.
The maximum number of steps for the algorithm to take before termination, i.e., the same as K.max.
Fitted value.
Dual coefficient.
Primal coefficient.
Wen,C., Wang, X., Shen, Y., and Zhang, A. (2017). "L0 trend filtering", technical report.