hexrd.fitting.spectrum module

class hexrd.fitting.spectrum.SpectrumModel(data, peak_centers, pktype='pvoigt', bgtype='linear', fwhm_init=None, min_ampl=0.0001, min_pk_sep=0.01)[source]

Bases: object

property background_params
property bgtype
property data
fit()[source]
property min_pk_sep
property model
property num_peaks
property params
property peak_params
property pktype
property tth0
hexrd.fitting.spectrum.chebyshev_bkg(x, *args)[source]
hexrd.fitting.spectrum.constant_bkg(x, c0)[source]
hexrd.fitting.spectrum.cubic_bkg(x, c0, c1, c2, c3)[source]
hexrd.fitting.spectrum.gaussian_1d(x, amp, cen, fwhm)[source]
hexrd.fitting.spectrum.linear_bkg(x, c0, c1)[source]
hexrd.fitting.spectrum.lorentzian_1d(x, amp, cen, fwhm)[source]
hexrd.fitting.spectrum.pink_beam_dcs(x, amp, cen, alpha0, alpha1, beta0, beta1, fwhm_g, fwhm_l)[source]

@author Saransh Singh, Lawrence Livermore National Lab @date 10/18/2021 SS 1.0 original @details pink beam profile for DCS data for calibration. more details can be found in Von Dreele et. al., J. Appl. Cryst. (2021). 54, 3–6

hexrd.fitting.spectrum.pvoigt_1d(x, amp, cen, fwhm, mixing)[source]
hexrd.fitting.spectrum.quadratic_bkg(x, c0, c1, c2)[source]
hexrd.fitting.spectrum.quartic_bkg(x, c0, c1, c2, c3, c4)[source]
hexrd.fitting.spectrum.quintic_bkg(x, c0, c1, c2, c3, c4, c5)[source]
hexrd.fitting.spectrum.split_pvoigt_1d(x, amp, cen, fwhm_l, fwhm_h, mixing_l, mixing_h)[source]