powered by
Build Difference Matrix of Given Order
build_D_mat(n, q)
The difference matrix of order q for a vector containing n observations.
q
n
Number of observations in the problem
Order of the penalization matrix