estimateBaselineNoise: From an EIC estimate the local noise level and baseline of...

Description Usage Arguments Details Value See Also

View source: R/estimate_baseline_noise.R

Description

estimateBaselineNoise returns an EIC with additional vectors containing the estimated baseline at each point, the estimated noise level, and a smoothed EIC.

Usage

1
estimateBaselineNoise(eic, peakwidth)

Arguments

eic

data.frame A data frame with columns "i" and "rt"

peakwidth

integer A two number vector containing the min and max expected peakwidth. Used to determine the smoothing window.

minslope.peak

numeric The maximum slope a region may have to be considered a baseline region

Details

Baseline estimation is performed by excluding all smoothed regions with a slope less than minslope.peak and interpolating the remaining "baseline" regions.

Local noise estimation is performed by taking the standard deviation of the difference between the smoothed and the unsmoothed EICs.

Value

The original data.frame with additional columns i.sg - the smoothed EIC, baseline.region - 0 for peak regions, 1 for baseline regions, baseline - the estimated baseline intensity at that point, noise.sd - the estimated noise level at that point.

See Also

wave


nathaniel-mahieu/centWaveP documentation built on May 23, 2019, 12:19 p.m.