SEC.Models.UvComponentCurve#

SEC.Models.UvComponentCurve.py

class UvComponentCurve(x, mapping, xr_ccurve, scale)#

Bases: ComponentCurve

A class to represent a UV component curve.

x#

The x values.

Type:

array-like

mapping#

The mapping from XR to UV.

Type:

Mapping

xr_ccurve#

The corresponding XR component curve.

Type:

ComponentCurve

scale#

The scaling factor.

Type:

float

Initializes the UV component curve.

Parameters:
  • x (array-like) – The x values.

  • mapping (Mapping) – The mapping from XR to UV.

  • xr_ccurve (ComponentCurve) – The corresponding XR component curve.

  • scale (float) – The scaling factor.

get_y(x=None)#

Returns the y values for the given x values.

Parameters:

x (array-like or None, optional) – The x values to get the y values for. If None, uses the object’s x values.

Returns:

The y values corresponding to the given x values.

Return type:

array-like

get_xy()#

Returns the x and y values as a tuple.

Returns:

A tuple containing the x values and the corresponding y values.

Return type:

tuple

get_peak_top_x()#

Returns the x value at the peak top.

Returns:

The x value at the peak top.

Return type:

float