powered by
Returns a 1D differentiating matrix operating on a series with n points.
get_l_rough(n, deg)
Matrix:discrete differentiation matrix
integer, number of data points
order of the derivative to approximate
Jonathan M. Lees<jonathan.lees@unc.edu>
Used to get first and 2nd order roughening matrices for 1-D problems
Aster, R.C., C.H. Thurber, and B. Borchers, Parameter Estimation and Inverse Problems, Elsevier Academic Press, Amsterdam, 2005.
### first order roughening matrix for a 10 by 10 model: a sparse matrix N = 10 L1 = get_l_rough(10,1); ### second order roughening matrix for a 10 by 10 model N = 10 L2 = get_l_rough(10,2);
Run the code above in your browser using DataLab