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.


spant documentation built on Sept. 11, 2024, 9:13 p.m.