Roughness penalty (source code)

= Roughness penalty

A <roughness penalty> penalizes variation of derivatives, such as $\int(m^{\prime\prime})^2$. The second-derivative penalty vanishes precisely on <affine functions> and is represented in a chosen basis by a <roughness penalty matrix>.