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/MINMAX_StAlData.py

    r585 r687  
    6767def maximize(params,npts,bounds): 
    6868 
    69   from mystic.math.dirac_measure import scenario 
     69  from mystic.math.discrete import scenario 
    7070  from numpy import inf 
    7171  target,error = params 
     
    104104    ##################### begin function-specific ##################### 
    105105    # impose norm on the weights of the discrete measures 
    106     from mystic.math.dirac_measure import norm_wts_constraintsFactory as factory 
     106    from mystic.math.discrete import norm_wts_constraintsFactory as factory 
    107107    constrain = factory(npts) 
    108108 
     
    167167  nz = 1  #NOTE: SET THE NUMBER OF 'v' POINTS HERE! 
    168168  npts = (nx,ny,nz) 
    169   from mystic.math.paramtrans import _npts 
     169  from mystic.math.distance import _npts 
    170170  _n = _npts(npts) 
    171171 
     
    229229 
    230230  from numpy import array 
    231   from mystic.math.dirac_measure import scenario 
     231  from mystic.math.discrete import scenario 
    232232  c = scenario() 
    233233  c.load(solved,npts) 
Note: See TracChangeset for help on using the changeset viewer.