Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

baseIRF

Baseline subtraction from a vector, usually representing an IRF.


Description

Baseline subtraction from a vector, usually representing an IRF.

Usage

baseIRF(irfvec, indexlow, indexhigh, removeNeg = FALSE)

Arguments

irfvec

Vector to subtract a baseline from

indexlow

Lowest index to base the baseline estimation on

indexhigh

Highest index to base the baseline estimation on

removeNeg

Whether negative values should be replaced with 0.

Details

Currently estimates the baseline as the mean of data between indexlow and indexhigh, and subtracts the result from the entire vector.

Value

vector

Author(s)

Katharine M. Mullen, Ivo H. M. van Stokkum

Examples

irfvec <- rnorm(128, mean=1) 
plot(irfvec,type="l") 
irfvec_corrected <- baseIRF(irfvec, 1, 10)
lines(irfvec_corrected, col=2)

TIMP

Fitting Separable Nonlinear Models in Spectroscopy and Microscopy

v1.13.2
GPL (>= 2)
Authors
Katharine M. Mullen, Joris J. Snellenburg, Sergey P. Laptenok, David Nicolaides, Ivo H.M. van Stokkum
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.