Models.EMG#
Models.EMG.py
Copyright (c) 2017-2024, SAXS Team, KEK-PF
- class EMG(**kwargs)#
Bases:
Model
- eval(params=None, **kwargs)#
- get_name()#
- get_params_string(params)#
- get_peaktop_xy_bad(x, params)#
- guess(y, x=None, negative=False, **kwargs)#
- guess_a_peak_with_prop(x, y, prop, debug=True)#
This function is used to guess a modeled peak with a given area ratio.
- x_from_height_ratio(ecurve, ratio, params)#
- class EMGA(**kwargs)#
Bases:
EMG
- eval(params=None, x=None)#
- get_def_expr(params)#
- get_name()#
- get_param_hints(pkey)#
- get_params_string(params)#
- guess(y, x=None, negative=False, **kwargs)#
- guess_a_peak_with_prop(x, y, prop, debug=True)#
This function is used to guess a modeled peak with a given area ratio, which has been generated (after the implementation of the same method of EMG) completely by Cody AI.
- x_from_height_ratio(ecurve, ratio, params)#
- emg_guess(x, y)#
- emg_no_affine(x, h=1.0, mu=0.0, sigma=1.0, tau=1.0, a=0)#
- emg_x_demo_plot()#
- emg_x_from_height_ratio(alpha, mu, sigma, tau)#
- emga(x, h, mu, sigma, tau, a)#
- emga_demo_plot(with_xy_map=False)#
- emga_guess_impl(self, y, x, negative, **kwargs)#
- emga_impl(x, h, mu, sigma, tau, a, raise_=False)#