SEC.Models.LkmComponentCurve#
SEC.Models.LkmComponentCurve.py
LKM (Lumped Kinetic Model) component curve.
Each component stores its own (R, k_MT) while sharing (Pe, t0) across all components in the same decomposition.
Copyright (c) 2024, SAXS Team, KEK-PF
- class LkmComponentCurve(x, Pe, t0, k_MT, R, scale, rg=None)#
Bases:
ComponentCurveA class to represent an LKM component curve.
- x#
The x values (frame numbers).
- Type:
array-like
Initializes the LkmComponentCurve.
- Parameters:
- model = 'lkm'#
- property y#
The y-values of the component curve evaluated at self.x.
- get_y(x=None)#
Returns the y-values.
- Parameters:
x (array-like or None) – If None, returns precomputed y at self.x.
- Return type:
array-like
- get_scale_param()#
Return the area scaling factor.
- Returns:
float – The scale parameter.
.. warning:: – The base implementation returns
self.params[0], which equals the scale only for EGH (params layout:[H, mu, sigma, tau]). Subclasses whoseparams[0]is not the scale (e.g. LKM and GRM whereparams[0] = Pe) must override this method. See molass-library issue #209.
- get_peak_top_x()#
Returns the x value at the peak top.
- Returns:
The x value at the peak top.
- Return type:
- get_params()#
Return (Pe, t0, k_MT, R, scale) as a tuple.