Mapping.MappingInfo#
Mapping.MappingInfo.py
- class MappingInfo(slope, intercept, xr_peaks, uv_peaks, xr_moment, uv_moment, xr_curve, uv_curve)#
Bases:
objectContains information about the mapping between XR and UV data.
- slope#
The slope of the linear mapping from XR to UV in the form y = slope * x + intercept.
- Type:
- intercept#
The intercept of the linear mapping from XR to UV in the form y = slope * x + intercept.
- Type:
Initializes the MappingInfo object with the given parameters.
- get_mapped_x(xr_x)#
Map XR x-values to UV x-values using the linear mapping.
- get_mapped_index(i, xr_x, uv_x)#
Get the index in the UV data corresponding to the given index in the XR data.
- get_mapped_curve(xr_icurve, uv_icurve, inverse_range=False, debug=False)#
Get the mapped curve from XR to UV domain.
- Parameters:
- Returns:
mapped_curve – The mapped curve in the UV domain.
- Return type:
- compute_ratio_curve(mp_curve=None, data_threshold=0.05, debug=False)#
Compute the ratio curve, which is the ratio of the UV absorbance to the XR intensity, based on the mapping information.
- Parameters:
- Returns:
ratio_curve
- Return type: