Changeset 17342
- Timestamp:
- 02/22/14 13:03:54 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/kriging/Observations.cpp
r17340 r17342 380 380 IssmPDouble* B = xNew<IssmPDouble>(n_obs+1); 381 381 382 IssmDouble unbias = variogram->Covariance(0.,0.); 382 383 /*First: Create semivariogram matrix for observations*/ 383 384 for(i=0;i<n_obs;i++){ … … 386 387 A[j*(n_obs+1)+i] = A[i*(n_obs+1)+j]; 387 388 } 388 A[i*(n_obs+1)+n_obs] = 1.; 389 } 390 for(i=0;i<n_obs;i++) A[n_obs*(n_obs+1)+i]=1.; 389 A[i*(n_obs+1)+n_obs] = unbias; 390 //A[i*(n_obs+1)+n_obs] = 1.; 391 } 392 for(i=0;i<n_obs;i++) A[n_obs*(n_obs+1)+i]=unbias; 393 //for(i=0;i<n_obs;i++) A[n_obs*(n_obs+1)+i]=1.; 391 394 A[n_obs*(n_obs+1)+n_obs] = 0.; 392 395 393 396 /*Get semivariogram vector associated to this location*/ 394 397 for(i=0;i<n_obs;i++) B[i] = variogram->Covariance(x[i]-x_interp,y[i]-y_interp); 395 B[n_obs] = 1.; 398 B[n_obs] = unbias; 399 //B[n_obs] = 1.; 396 400 397 401 /*Solve the three linear systems*/
Note:
See TracChangeset
for help on using the changeset viewer.