Changeset 687 for branches/UQ/math/legacy/TEST_OUQ_1dSurr_CxCy.py
- Timestamp:
- 06/15/13 18:43:09 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/math/legacy/TEST_OUQ_1dSurr_CxCy.py
r588 r687 73 73 def maximize(params,npts,bounds,printmon=None,**kwds): 74 74 75 from mystic.math.di rac_measure import scenario75 from mystic.math.discrete import scenario 76 76 from numpy import inf 77 77 target,error = params … … 110 110 ##################### begin function-specific ##################### 111 111 # impose mean on the values of the product measure 112 from mystic.math.di rac_measure import mean_y_norm_wts_constraintsFactory as factory112 from mystic.math.discrete import mean_y_norm_wts_constraintsFactory as factory 113 113 constrain = factory((target[0],error[0]), npts) 114 114 … … 203 203 nz = 1 #NOTE: SET THE NUMBER OF 'v' POINTS HERE! 204 204 npts = (nx,ny,nz) 205 from mystic.math. paramtransimport _npts205 from mystic.math.distance import _npts 206 206 _n = _npts(npts) 207 207 … … 271 271 272 272 from numpy import array 273 from mystic.math.di rac_measure import scenario273 from mystic.math.discrete import scenario 274 274 c = scenario() 275 275 c.load(solved,npts) … … 294 294 try: _Cx = max(Cx) 295 295 except TypeError: _Cx = Cx 296 from mystic.math. paramtransimport graphical_distance296 from mystic.math.distance import graphical_distance 297 297 Ry = graphical_distance(model, c, ytol=Cy, xtol=Cx, cutoff=0.0, 298 298 imax=0, hausdorff=hausdorff)
Note: See TracChangeset
for help on using the changeset viewer.