Changeset 687 for branches/UQ/math/legacy/TEST_OUQ_1dSurr_Cy.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_Cy.py
r586 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 … … 202 202 nz = 1 #NOTE: SET THE NUMBER OF 'v' POINTS HERE! 203 203 npts = (nx,ny,nz) 204 from mystic.math. paramtransimport _npts204 from mystic.math.distance import _npts 205 205 _n = _npts(npts) 206 206 … … 270 270 271 271 from numpy import array 272 from mystic.math.di rac_measure import scenario272 from mystic.math.discrete import scenario 273 273 c = scenario() 274 274 c.load(solved,npts) … … 292 292 try: _Cx = max(Cx) 293 293 except TypeError: _Cx = Cx 294 from mystic.math. paramtransimport graphical_distance294 from mystic.math.distance import graphical_distance 295 295 Ry = graphical_distance(model, c, ytol=Cy, xtol=Cx, cutoff=0.0, imax=0) 296 296 printmon.info("vertical_distance: %s <= %s" % (Ry, Cy + _Cx))
Note: See TracChangeset
for help on using the changeset viewer.