Changeset 687 for branches/UQ/math/legacy/TEST_OUQ_StStSurr_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_StStSurr_Cy.py
r585 r687 70 70 def maximize(params,npts,bounds): 71 71 72 from mystic.math.di rac_measure import scenario72 from mystic.math.discrete import scenario 73 73 from numpy import inf 74 74 target,error = params … … 107 107 ##################### begin function-specific ##################### 108 108 # impose mean on the values of the product measure 109 from mystic.math.di rac_measure import mean_y_norm_wts_constraintsFactory as factory109 from mystic.math.discrete import mean_y_norm_wts_constraintsFactory as factory 110 110 constrain = factory((target[0],error[0]), npts) 111 111 … … 194 194 nz = 1 #NOTE: SET THE NUMBER OF 'v' POINTS HERE! 195 195 npts = (nx,ny,nz) 196 from mystic.math. paramtransimport _npts196 from mystic.math.distance import _npts 197 197 _n = _npts(npts) 198 198 … … 257 257 258 258 from numpy import array 259 from mystic.math.di rac_measure import scenario259 from mystic.math.discrete import scenario 260 260 c = scenario() 261 261 c.load(solved,npts) … … 273 273 try: _Cx = max(Cx) 274 274 except TypeError: _Cx = Cx 275 from mystic.math. paramtransimport graphical_distance275 from mystic.math.distance import graphical_distance 276 276 Ry = graphical_distance(model, c, ytol=Cy, xtol=Cx, cutoff=0.0, imax=0) 277 277 print "vertical_distance: %s <= %s" % (Ry, Cy + _Cx)
Note: See TracChangeset
for help on using the changeset viewer.