Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.models.Offset  (  model = None x_cuts = None offsets = None  )[source]

Cuts the x-axis and adds y-axis offsets to every segment.

Parameters:
modelqspec.models._base.Model

The submodel the offset will be added to. If None, the offset will be added to zero.

x_cutsIterable[scalar_like]

x values where to cut the x-axis.

offsetsIterable[scalar_like]

A list of maximally considered polynomial orders for each slice. The list must have length len(x_cuts) + 1.

API navigation