You are viewing the documentation for metbit 8.7.3. Change release context
metbit.baseline
NMR and preprocessing module in metbit 8.7.3.
import metbit.baselineFunctions
bline(X: pd.DataFrame, lam: float=10000000.0, max_iter: int=30)
Baseline correction for 1D NMR spectra using asymmetric least squares (ALS).
Parameters: X (pd.DataFrame): DataFrame where rows are spectra, columns are PPM values. lam (float): Smoothing parameter (lambda). Higher = smoother baseline. max_iter (int): Max iterations for ALS.
Returns: pd.DataFrame: Baseline-corrected spectra (same shape as input).