Ignore:
Timestamp:
06/15/13 18:43:09 (3 years ago)
Author:
mmckerns
Message:

renaming of some of the measure methods, including dirac_measure to measure
moved dirac_measure.py to discrete.py, and paramtrans to distance
added isinstance to tools; added min, max, ess_min, ess_max to measures
moved dirac_measure.coords to dirac_measure.positions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UQ/math/legacy/TEST_OUQ_1dSurr_CxCy.py

    r588 r687  
    7373def maximize(params,npts,bounds,printmon=None,**kwds): 
    7474 
    75   from mystic.math.dirac_measure import scenario 
     75  from mystic.math.discrete import scenario 
    7676  from numpy import inf 
    7777  target,error = params 
     
    110110    ##################### begin function-specific ##################### 
    111111    # impose mean on the values of the product measure 
    112     from mystic.math.dirac_measure import mean_y_norm_wts_constraintsFactory as factory 
     112    from mystic.math.discrete import mean_y_norm_wts_constraintsFactory as factory 
    113113    constrain = factory((target[0],error[0]), npts) 
    114114 
     
    203203  nz = 1  #NOTE: SET THE NUMBER OF 'v' POINTS HERE! 
    204204  npts = (nx,ny,nz) 
    205   from mystic.math.paramtrans import _npts 
     205  from mystic.math.distance import _npts 
    206206  _n = _npts(npts) 
    207207 
     
    271271 
    272272  from numpy import array 
    273   from mystic.math.dirac_measure import scenario 
     273  from mystic.math.discrete import scenario 
    274274  c = scenario() 
    275275  c.load(solved,npts) 
     
    294294  try: _Cx = max(Cx) 
    295295  except TypeError: _Cx = Cx 
    296   from mystic.math.paramtrans import graphical_distance 
     296  from mystic.math.distance import graphical_distance 
    297297  Ry = graphical_distance(model, c, ytol=Cy, xtol=Cx, cutoff=0.0, 
    298298                          imax=0, hausdorff=hausdorff) 
Note: See TracChangeset for help on using the changeset viewer.