This function applies a rolling ball baseline correction to spectral data within a specified wavelength range. It allows for correction of either absorbance or transmittance data.
spec_blc_rollingBall(
.data,
wn_col = NULL,
wn_min = NULL,
wn_max = NULL,
wm,
ws = 0,
is_abs = TRUE
)
A `tibble` with the baseline-corrected spectral data, containing the wavelength column and the corrected numeric columns.
A `data.frame` or `tibble` containing spectral data.
A character string specifying the column name for the wavelength data. Default is `"Wn"`.
A numeric value specifying the minimum wavelength to consider for the baseline correction.
A numeric value specifying the maximum wavelength to consider for the baseline correction.
A numeric value for the window size of the rolling ball algorithm.
A numeric value for the smoothing factor of the rolling ball algorithm.
A logical value indicating whether the data is already in absorbance. If `TRUE`, absorbance is used directly; if `FALSE`, the data is converted to absorbance before applying the baseline correction.
Baseline estimation performed using a custom rolling ball implementation.