Learn R Programming

tidyspec (version 0.1.0)

rolling_ball_morphology: Enhanced Rolling Ball with Mathematical Morphology

Description

More sophisticated version of rolling ball using mathematical morphology concepts

Usage

rolling_ball_morphology(x, radius, smooth = TRUE)

Value

A list with three components:

baseline

Numeric vector containing the estimated baseline values using morphological operations

corrected

Numeric vector containing the baseline-corrected signal (original - baseline)

original

Numeric vector containing the original input signal

Arguments

x

Numeric vector containing the spectrum/signal values

radius

Radius of the structuring ball

smooth

Apply additional smoothing (logical)