Package diffpy :: Package srrietveld :: Package addon :: Module mcsampling :: Class MonteCarloSampling
[frames] | no frames]

Class MonteCarloSampling

source code

Monte Carlo Sampling for diffraction pattern.

Instance Methods
 
__init__(self, fit, snum, stype='Normal')
Initialization.
source code
 
addSampleData(self)
Convert data file if neccessary.
source code
 
genSamplingFromchi(self, fullpath, newfullpath, bankid, num, dfc)
Sampling num of times based on distribution and save the new datafile in newfullpath.
source code
 
genSamplingFromtimemap(self, fullpath, newfullpath, bankid, num, dfc, expfilepath)
Sampling num of times based on distribution and save the new datafile in newfullpath.
source code
 
genSamplingFromxye(self, fullpath, newfullpath, bankid, num, dfc)
Sampling num of times based on distribution and save the new datafile in newfullpath.
source code
 
getEngine(self)
Get engine type from fit object.
source code
Method Details

__init__(self, fit, snum, stype='Normal')
(Constructor)

source code 

Initialization.

fit --- a diffpy.refinementdata.Refinement object that stores a fit with only one pattern snum --- number of samplings stype --- type of sampling distribution