Changeset 356 for trunk/src/tps_eval_dxy.m
- Timestamp:
- Jan 3, 2012, 12:58:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tps_eval_dxy.m
r247 r356 1 % 'DXYMatrix': calculate the matrix of thin-plate shell derivatives 2 % 3 % function DMXY = DXYMatrix(dsites,ctrs) 1 %'tps_eval_dxy': calculate the derivatives of thin plate spline (tps) interpolation at a set of points (limited to the 2D case) 2 %------------------------------------------------------------------------ 3 % function [DMX,DMY] = tps_eval_dxy(dsites,ctrs) 4 %------------------------------------------------------------------------ 5 % OUTPUT: 6 % DMX: Mx(N+3) matrix representing the contributions to the X 7 % derivatives at the M sites from unit sources located at each of the N 8 % centers, + 3 columns representing the contribution of the linear gradient part. 9 % DMY: idem for Y derivatives 4 10 % 5 11 % INPUT: 6 % dsites: M x s matrix of interpolation site coordinates (s=space dimension )12 % dsites: M x s matrix of interpolation site coordinates (s=space dimension=2 here) 7 13 % ctrs: N x s matrix of centre coordinates (initial data) 8 14 % 9 % OUTPUT: 10 % DMXY: Mx(N+1+s)xs matrix corresponding to M interpolation sites and 11 % N centres, with s=space dimension, DMXY(:,:,k) gives the derivatives 12 % along dimension k (=x, y,z) after multiplication by the N+1+s tps sources. 15 % related functions: 16 % tps_coeff, tps_eval 17 13 18 function [DMX,DMY] = tps_eval_dxy(dsites,ctrs) 14 19 %% matrix declarations
Note: See TracChangeset
for help on using the changeset viewer.