Changeset 1088 for trunk


Ignore:
Timestamp:
Oct 7, 2013 1:01:01 PM (12 years ago)
Author:
vondreele
Message:

small tweak to data simulation - give it a "signature" of fakeness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIstrMath.py ΒΆ

    r1087 r1088  
    18881888                rv = st.poisson(yc[xB:xF])
    18891889                y[xB:xF] = rv.rvs()
     1890                Z = np.ones_like(yc[xB:xF])
     1891                Z[1::2] *= -1
     1892                y[xB:xF] = yc[xB:xF]+np.abs(y[xB:xF]-yc[xB:xF])*Z
    18901893                w[xB:xF] = np.where(y[xB:xF]>0.,1./y[xB:xF],1.0)
    18911894            yd[xB:xF] = y[xB:xF]-yc[xB:xF]
Note: See TracChangeset for help on using the changeset viewer.