Estimators.EghEstimator#
Estimators.EghEstimator.py
Copyright (c) 2022-2025, SAXS Team, KEK-PF
- class EghEstimator(editor)#
Bases:
BaseEstimator- estimate_egh_params(lrf_src=None, debug=False)#
- estimate_params(lrf_src=None, debug=False)#
- estimate_uv_weights_from_peaks(model_curves, x, mapping, uv_x, uv_y)#
Per-component UV scale: UV data value at each model component’s peak position divided by the XR model peak value.
This is the same approach used by molass.SEC.Models.UvOptimizer and can be called from any model estimator (EDM, CEDM, LKM, …).
- Parameters:
model_curves (list of 1-D array) – Evaluated XR model curve for each component on grid
x.x (1-D array) – XR frame positions.
mapping ((float, float)) – (a_mp, b_mp) mapping XR frame → UV frame (uv_frame = a*x + b).
uv_x (1-D array) – UV elution curve x / y arrays.
uv_y (1-D array) – UV elution curve x / y arrays.
- Returns:
uv_w – UV scale per component, clipped to [1e-3, 1e3].
- Return type:
1-D array (nc,)
- get_peak_params_advanced(editor, lrf_src=None, affine=False, debug=False)#