Code covered by the BSD License
-
Lplot(lambdavec,rho,eta)
make discrepancy plot
-
Lt=trans2d(dimr,dimc);
-
[Lgfit,rho,eta]=LCurve(s,K,la...
determines a set of solutions $g$ according to a user-defined set of regularization parameters.
-
[f,d]=chi2spectrum(gcol,guess...
calculate deviation vector in spectral domain
-
[gfit,rho,eta]=NLCSmoothReg(s...
determines the solution $g$ according to the user-defined regularization parameter, which has to be estimated
-
ddL2=L2_2d(n,dimr,dimc);
calculates the nth derivative matrix with respect to each columnvector of a
-
get_l(n,d)
GET_L Compute discrete derivative operators.
-
plotODF(ODF,nocontours)
generates a contourplot of a two dimensionally function with
-
getposDP.m
-
getposLP.m
-
View all files
from
NLCSmoothReg
by Michael Wendlandt
Computes a smooth regularized solution of an ill-posed discrete linear inverse problem.
|
| ddL2=L2_2d(n,dimr,dimc);
|
function ddL2=L2_2d(n,dimr,dimc);
% calculates the nth derivative matrix with respect to each columnvector of a
% matrix (dimr x dimc)
% length of a column-vector after derivation
dddim=dimr-n;
% make second derivative matrice for one column
ddL=full(get_l(dimr,n));
% put together to form final matrix
for i=1:(dimc)
ddL2( ((i-1)*dddim +1) : (i*dddim) , ((i-1)*dimr + 1) : i*dimr ) = ddL;
end
|
|
Contact us at files@mathworks.com