Changeset 5004 for anuga_core/source/anuga/geospatial_data
- Timestamp:
- Feb 7, 2008, 10:56:03 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/geospatial_data.py
r5003 r5004 1552 1552 #returns the predicted elevation of the points that were "split" out 1553 1553 #of the original data set for one particular alpha 1554 if verbose: print 'get predicted elevation for location to be compared' 1554 1555 elevation_predicted=domain.quantities[attribute_smoothed].\ 1555 1556 get_values(interpolation_points=points_geo) … … 1564 1565 #print 'memory usage during compare',mem_usage() 1565 1566 1566 1567 if verbose: print'cov',normal_cov[i][0],'= ',normal_cov[i][1] 1568 1569 1567 if verbose: print'covariance for alpha ',normal_cov[i][0],'= ',normal_cov[i][1] 1570 1568 1571 1569 # if verbose: print 'Determine difference between predicted results and actual data' … … 1602 1600 remove(mesh_file) 1603 1601 1602 if verbose: 1603 print 'Final results:' 1604 for i in len(alphas): 1605 print'covariance for alpha %s = %s ' %(normal_cov[i][0],normal_cov[i][1]) 1606 print '\n Optimal alpha is: %s ' % normal_cov_new[(argmin(normal_cov_new,axis=0))[1],0] 1607 1604 1608 return min(normal_cov_new[:,1]) , normal_cov_new[(argmin(normal_cov_new,axis=0))[1],0] 1605 1609
Note: See TracChangeset
for help on using the changeset viewer.