bc_spline: Fit and subtract a smoothing spline to each spectrum in a...

View source: R/mrs_data_proc.R

bc_splineR Documentation

Fit and subtract a smoothing spline to each spectrum in a dataset.

Description

Fit and subtract a smoothing spline to each spectrum in a dataset.

Usage

bc_spline(mrs_data, spar = 0.5, nknots = 100)

Arguments

mrs_data

mrs_data object.

spar

smoothing parameter typically between 0 and 1.

nknots

number of spline knots.

Value

smoothing spline subtracted data.


martin3141/spant documentation built on April 14, 2024, 4:15 a.m.