Changeset 1139 for trunk/src/tps_coeff.m
 Timestamp:
 Apr 25, 2024, 5:56:32 PM (6 months ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/tps_coeff.m
r1127 r1139 12 12 % 13 13 % 14 % [U_smooth,U_tps]=tps_coeff(ctrs,U, Smoothing)14 % [U_smooth,U_tps]=tps_coeff(ctrs,U,smoothing) 15 15 % 16 16 % OUTPUT: … … 21 21 % ctrs: NxNbDim matrix representing the positions of the N centers, sources of the tps (NbDim=space dimension) 22 22 % U: Nx1 column vector representing the values of the considered scalar measured at the centres ctrs 23 % Smoothing: smoothing parameter: the result is smoother for larger Smoothing.23 % smoothing: smoothing parameter: the result is smoother for larger smoothing. 24 24 % 25 25 % RELATED FUNCTIONS: … … 45 45 %======================================================================= 46 46 47 function [U_smooth,U_tps]=tps_coeff(ctrs,U, Smoothing)47 function [U_smooth,U_tps]=tps_coeff(ctrs,U,smoothing) 48 48 % 49 49 warning off … … 52 52 U = [U; zeros(NbDim+1,1)]; 53 53 EM = tps_eval(ctrs,ctrs); 54 SmoothingMat= Smoothing*eye(N,N);% Smoothing=1/(2*omega) , omega given by fasshauer;54 SmoothingMat=smoothing*eye(N,N);% smoothing=1/(2*omega) , omega given by fasshauer; 55 55 SmoothingMat=[SmoothingMat zeros(N,NbDim+1)]; 56 56 PM=[ones(N,1) ctrs];
Note: See TracChangeset
for help on using the changeset viewer.