Package diffpy :: Package pdfgui :: Package control :: Module fitdataset
[hide private]
[frames] | no frames]

Module fitdataset

source code

class FitDataSet for experimental PDF data and related fitting parameters



Classes [hide private]
  FitDataSet
FitDataSet stores experimental and calculated PDF data and related fitting parameters.
Functions [hide private]
 
grid_interpolation(x0, y0, x1, youtside=0.0)
Linear interpolation of x0, y0 values to a new grid x1.
source code
Variables [hide private]
  __id__ = '$Id: fitdataset.py 2980 2009-04-02 00:14:33Z juhas $'
Function Details [hide private]

grid_interpolation(x0, y0, x1, youtside=0.0)

source code 
Linear interpolation of x0, y0 values to a new grid x1.

x0       -- original x-grid, must be equally spaced
y0       -- original y values
x1       -- new x-grid, it can have any spacing
youtside -- value for interpolated y1 outside of x0 range

Return numpy.array of interpolated y1 values.