nmr_baseline_estimation: Estimate the baseline on an nmr_dataset_1D object, using...

View source: R/nmr_baseline_removal.R

nmr_baseline_estimationR Documentation

Estimate the baseline on an nmr_dataset_1D object, using baseline::baseline.als.

Description

Estimate the baseline on an nmr_dataset_1D object, using baseline::baseline.als.

Usage

nmr_baseline_estimation(nmr_dataset, lambda = 9, p = 0.05, maxit = 20)

Arguments

nmr_dataset

An nmr_dataset_1D.

lambda

2nd derivative constraint

p

Weighting of positive residuals

maxit

Maximum number of iterations

Value

The same nmr_dataset_1D object with the data_1r_baseline element.

See Also

baseline::baseline.als

Other baseline removal functions: nmr_baseline_removal()

Examples

dataset_1D <- nmr_dataset_load(system.file("extdata", "nmr_dataset.rds", package = "AlpsNMR"))
dataset_1D <- nmr_baseline_estimation(dataset_1D, lambda = 9, p = 0.01)


sipss/AlpsNMR documentation built on Aug. 13, 2024, 5:11 p.m.