Changeset 687 for branches/UQ/math/legacy/envelope/Looper_BoLiSurr_Cy.py
- Timestamp:
- 06/15/13 18:43:09 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UQ/math/legacy/envelope/Looper_BoLiSurr_Cy.py
r675 r687 98 98 def maximize(params,npts,bounds,initial=None,job='',printmon=None): 99 99 100 from mystic.math.di rac_measure import scenario100 from mystic.math.discrete import scenario 101 101 from numpy import inf 102 102 target,error = params … … 140 140 ##################### begin function-specific ##################### 141 141 # impose mean on the values of the product measure 142 from mystic.math.di rac_measure import mean_y_norm_wts_constraintsFactory as factory142 from mystic.math.discrete import mean_y_norm_wts_constraintsFactory as factory 143 143 constrain = factory((target[0],error[0]), npts) 144 144 … … 250 250 251 251 npts = (nx,ny,nz) 252 from mystic.math. paramtransimport _npts252 from mystic.math.distance import _npts 253 253 _n = _npts(npts) 254 254 … … 316 316 317 317 from numpy import array 318 from mystic.math.di rac_measure import scenario318 from mystic.math.discrete import scenario 319 319 c = scenario() 320 320 c.load(solved,npts) … … 333 333 # try: _Cx = max(Cx) 334 334 # except TypeError: _Cx = Cx 335 from mystic.math. paramtransimport graphical_distance335 from mystic.math.distance import graphical_distance 336 336 Ry = graphical_distance(model, c, ytol=Cy, xtol=Cx, cutoff=0.0, \ 337 337 imax=0, ipop=cde, hausdorff=hausdorff)
Note: See TracChangeset
for help on using the changeset viewer.