Package diffpy :: Package srrietveld :: Package addon :: Module debyefitting :: Class DebyeFitting
[frames] | no frames]

Class DebyeFitting

source code

object --+
         |
        DebyeFitting

Class to perform Debye fitting

This fits the isotropic ADPs (Uiso) of a specified atom in a material
according to the Debye model.

Attributes
x       --  Temperature values (default none).
y       --  ADP values of the atom at temperatures specfied by x
dy      --  Uncertainty in y (default None).
mass    --  The mass of the atom in atomic mass units (e.g., 12 for carbon)
_residual   --  The residual function to be optimized.
results --  The full results returned from the optimizer (using
            full_results = True). See the leastsq
            function from scipy.optimize for the format.
thetaD  --  The Debye temperature extracted from the ADPs by fitting the
            Debye model.
offset  --  The static offset in the ADPs extracted by fitting the Debye
            model.

Instance Methods
 
__init__(self, x, y, mass, dy=None)
Constructor of the fitting object
source code
 
fit(self)
Create the recipe, fit it and get the results.
source code
 
plotResults(self)
Plot the results contained within a refined FitRecipe.
source code
 
saveResults(self, filename)
Save the results to a text file
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, x, y, mass, dy=None)
(Constructor)

source code 
Constructor of the fitting object

x       --  A numpy array of temperatures.
y       --  The thermal parameters over the calculation range.
mass    --  The mass of the atom in atomic mass units.
dy      --  The uncertainty in the thermal parameters over the
            calculation range. If this is None (default), then the
            uncertainties are set to unity.

Overrides: object.__init__