LowRank.ComponentCurve#
LowRank.ComponentCurve.py
- class ComponentCurve(x, params)#
Bases:
object
A class to represent a component curve.
- x#
The x-values of the component curve.
- Type:
array-like
- params#
The parameters of the component curve.
- Type:
array-like
- moment#
The moment of the component curve. Computed on demand. If None, it has not been computed yet.
- Type:
Moment or None
Initializes the ComponentCurve object with the given x-values and parameters.
- Parameters:
x (array-like) – The x-values of the component curve.
params (array-like) – The parameters of the component curve.
- get_y()#
Returns the y-values of the component curve.
- Returns:
The y-values of the component curve.
- Return type:
array-like
- get_xy()#
Returns the x and y values of the component curve.
- Returns:
The x and y values of the component curve.
- Return type:
tuple of array-like
- get_moment()#
Returns the moment of the component curve.
- Returns:
The moment of the component curve.
- Return type:
- get_params()#
Returns the parameters of the component curve.
- Returns:
The parameters of the component curve.
- Return type:
array-like
- get_peak_top_x()#
Returns the x value at the peak top.
- Returns:
The x value at the peak top.
- Return type:
float