Changeset 476 for trunk/src/filter_tps.m
- Timestamp:
- Jun 25, 2012, 10:50:51 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/filter_tps.m
r389 r476 1 %'filter_tps': find the thin plate spline coefficients for interpolation-smoothing 1 2 %------------------------------------------------------------------------ 2 % patch function 3 % [SubRange,NbSites,Coord_tps,U_tps,V_tps,W_tps,U_smooth,V_smooth,W_smooth,FF] =filter_tps(Coord,U,V,W,SubDomain,Rho,Threshold) 4 % 3 5 % OUTPUT: 4 6 % SubRange(NbCoord,NbSubdomain,2): range (min, max) of the coordiantes x and y respectively, for each subdomain … … 10 12 % 11 13 % INPUT: 12 % X, Y: set of coordinates of the initial data14 % coord=[X Y]: matrix whose first column is the x coordinates of the initial data, the second column the y coordiantes 13 15 % U,V: set of velocity components of the initial data 14 16 % Rho: smoothing parameter … … 16 18 % Subdomain: estimated number of data points in each subdomain 17 19 18 %function [SubRangx,SubRangy,nbpoints,FF,U_smooth,V_smooth,X_tps,Y_tps,U_tps,V_tps,Indices_tps] =filter_tps(Coord,U,V,W,SubDomain,Rho,Threshold)19 20 function [SubRange,NbSites,Coord_tps,U_tps,V_tps,W_tps,U_smooth,V_smooth,W_smooth,FF] =filter_tps(Coord,U,V,W,SubDomain,Rho,Threshold) 20 21 %subdomain decomposition 21 22 warning off 22 % U=reshape(U,[],1);23 % V=reshape(V,[],1);24 % X=reshape(X,[],1);25 % Y=reshape(Y,[],1);26 23 nbvec=size(Coord,1); 27 24 W_tps=[];%default … … 43 40 CentreY=reshape(CentreY,1,[]);% Y positions of subdomain centres 44 41 CentreX=reshape(CentreX,1,[]);% X positions of subdomain centres 45 rho=Siz(1)*Siz(2)*Rho/1000 000;%optimum rho increase as the area of the subdomain (division by 10^6 to reach good values with the default GUI input)42 rho=Siz(1)*Siz(2)*Rho/1000;%optimum rho increase as the area of the subdomain (division by 10^6 to reach good values with the default GUI input) 46 43 U_tps_sub=zeros(nbvec,NbSubDomain);%default spline 47 44 V_tps_sub=zeros(nbvec,NbSubDomain);%default spline
Note: See TracChangeset
for help on using the changeset viewer.