signal2conc {transmem} | R Documentation |
Converts signals into concentration by using given model.
Description
After a calibration model is established (either by using
calibCurve
or calibPlane
), the function
interpolates the signals of samples to get the associated concentrations.
Usage
signal2conc(signal, model, dilution = NULL, planar = FALSE, Conc.S = NULL)
Arguments
signal |
Numeric vector of signals to be interpolated. |
model |
Regression model of the calibration. Must be obtained
using |
dilution |
Numeric vector of dilution factors applied to samples before measurement |
planar |
Logical, default to |
Conc.S |
Numeric vector of the concentrations of the interferent
species to be considered when a planar calibration model is
provided to |
Value
Numeric vector of species concentrations.
Author(s)
Cristhian Paredes, craparedesca@unal.edu.co
Eduardo Rodriguez de San Miguel, erdsmg@unam.mx
Examples
# A regression model is needed:
data(curvelithium)
model <- calibCurve(curve = curvelithium, order = 2)
signal <- c(0.395, 0.259, 0.188, 0.141, 0.110, 0.095, 0.084)
(conc <- signal2conc(signal = signal, model = model))