Changeset 2787
 Timestamp:
 Apr 17, 2017 9:29:27 AM (5 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIsasd.py
r2755 r2787 1390 1390 distFxn = 'LogNormalDist' 1391 1391 cumeFxn = 'LogNormalCume' 1392 pos = distDict['MinSize'] 1393 args = [distDict['Mean'],distDict['StdDev']] 1394 step = 4.*np.sqrt(np.exp(distDict['StdDev']**2)*(np.exp(distDict['StdDev']**2)1.)) 1395 mode = distDict['MinSize']+distDict['Mean']/np.exp(distDict['StdDev']**2) 1396 minX = 1. #pos 1397 maxX = 1.e4 #np.min([mode+nPoints*step*40,1.e5]) 1392 1398 elif 'Gauss' in DistName: 1393 1399 distFxn = 'GaussDist' 1394 1400 cumeFxn = 'GaussCume' 1401 pos = distDict['Mean'] 1402 args = [distDict['StdDev']] 1403 step = 0.02*distDict['StdDev'] 1404 mode = distDict['Mean'] 1405 minX = np.max([mode4.*distDict['StdDev'],1.]) 1406 maxX = np.min([mode+4.*distDict['StdDev'],1.e5]) 1395 1407 elif 'LSW' in DistName: 1396 1408 distFxn = 'LSWDist' 1397 1409 cumeFxn = 'LSWCume' 1410 pos = distDict['Mean'] 1411 args = [] 1412 minX,maxX = [0.,2.*pos] 1398 1413 elif 'Schulz' in DistName: 1399 1414 distFxn = 'SchulzZimmDist' 1400 1415 cumeFxn = 'SchulzZimmCume' 1416 pos = distDict['Mean'] 1417 args = [distDict['StdDev']] 1418 minX = np.max([1.,pos4.*distDict['StdDev']]) 1419 maxX = np.min([pos+4.*distDict['StdDev'],1.e5]) 1401 1420 nP = 500 1402 1421 Diam = np.logspace(0.,5.,nP,True)
Note: See TracChangeset
for help on using the changeset viewer.