Miscellaneous Baselines

The contents of pybaselines.misc contain miscellaneous baseline algorithms that do not fit in other categories.


interp_pts (Interpolation between points)

interp_pts() interpolates between input points using line segments or splines of different orders. The function is mainly intended for usage with user interfaces and is not encouraged otherwise.


Unlike most other algorithms in pybaselines, interp_pts requires inputting the x-values of the data rather than the y-values.

(Source code, png, hires.png, pdf)


There is no figure showing the fits for various baseline types for this method since it solely depends on the user-defined anchor points.

beads (Baseline Estimation And Denoising with Sparsity)

beads() decomposes the input data into baseline and pure, noise-free signal by modeling the baseline as a low pass filter and by considering the signal and its derivatives as sparse.

(Source code, png, hires.png, pdf)


The signal with both noise and baseline removed can also be obtained from the output of the beads function.

(Source code, png, hires.png, pdf)