- Timestamp:
- 08/02/12 17:13:12 (13 years ago)
- Location:
- issm/branches/trunk-jpl-damage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-jpl-damage ¶
- Property svn:mergeinfo changed
-
TabularUnified issm/branches/trunk-jpl-damage/src/modules/Kriging/Kriging.cpp ¶
r12258 r12878 22 22 /*checks on arguments on the matlab side: */ 23 23 if (nrhs<NRHS || nlhs>NLHS){ 24 KrigingUsage(); _error _("Kriging usage error");24 KrigingUsage(); _error2_("Kriging usage error"); 25 25 } 26 26 27 27 /*Fetch inputs: */ 28 28 FetchData(&x,&n_obs,X); 29 FetchData(&y,&N,Y); if(n_obs!=N) _error _("x and y should have the same size");30 FetchData(&observations,&N,OBSERVATIONS); if(n_obs!=N) _error _("x and observations should have the same size");29 FetchData(&y,&N,Y); if(n_obs!=N) _error2_("x and y should have the same size"); 30 FetchData(&observations,&N,OBSERVATIONS); if(n_obs!=N) _error2_("x and observations should have the same size"); 31 31 FetchData(&x_interp,&M_interp,&N_interp,XINTERP); 32 FetchData(&y_interp,&M,&N,YINTERP); if(N!=N_interp || M!=M_interp) _error _("x_interp and y_interp should have the same size");32 FetchData(&y_interp,&M,&N,YINTERP); if(N!=N_interp || M!=M_interp) _error2_("x_interp and y_interp should have the same size"); 33 33 FetchData(&options,NRHS,nrhs,prhs); 34 34 … … 54 54 55 55 void KrigingUsage(void){ 56 _printf_(true,"\n"); 57 _printf_(true," usage: predictions=%s(x,y,observations,x_interp,y_interp);\n",__FUNCT__); 58 _printf_(true,"\n"); 56 _pprintLine_(""); 57 _pprintLine_(" usage: predictions=" << __FUNCT__ << "(x,y,observations,x_interp,y_interp,'options');"); 58 _pprintLine_(" available options:"); 59 _pprintLine_(" -'model': Available variogram models 'gaussian' (default),'spherical','power','exponential'"); 60 _pprintLine_(" -'nugget': nugget effect (default 0.2)"); 61 _pprintLine_(" -'range': for gaussian, spherical and exponential models (default sqrt(3))"); 62 _pprintLine_(" -'sill': for gaussian, spherical and exponential models (default 1)"); 63 _pprintLine_(" -'slope': for power model (default 1)"); 64 _pprintLine_(" -'power': for power model (default 1)"); 65 _pprintLine_(" -'searchradius': search radius for each prediction (default is observations span)"); 66 _pprintLine_(" -'boxlength': minimum length of quadtree boxes (useful to decrease the number of observations)"); 67 _pprintLine_(" -'maxdata': minimum number of observations for a prediction (default is 50)"); 68 _pprintLine_(" -'mindata': maximum number of observations for a prediction (default is 1)"); 69 _pprintLine_(" -'maxtrimming': maximum trimming value (default is -1.e+21)"); 70 _pprintLine_(" -'mintrimming': minimum trimming value (default is +1.e+21)"); 71 _pprintLine_(" -'minspacing': minimum distance between observation (default is 0.01)"); 72 _pprintLine_(""); 59 73 }
Note:
See TracChangeset
for help on using the changeset viewer.