full_width_half_max

spectacle.analysis.full_width_half_max(x, y)[source] [edit on github]

Use a univariate spline to fit the line feature, taking its roots as representative of the full width at half maximum.

Parameters
xastropy.units.Quantity

The dispersion array.

ynp.ndarray

The data array.

Returns
float

The full width at half maximum.