View source: R/spectrace_normalize_spectra.R
spectrace_normalize_spectra | R Documentation |
This function normalizes the spectral data.
spectrace_normalize_spectra(
lightData,
method = c("peak", "AUC", "wavelength", "response"),
wavelength = NULL,
response = c("vl", "sc", "mc", "lc", "rod", "mel"),
keepNormCoefficient = FALSE
)
lightData |
Data frame containing the (calibrated) light data. Data needs
to be in wide format (see |
method |
String specifying the normalization method. If method is "peak" (default), data is normalized such that the peak (max value) is equal to 1. If method is "AUC", data is normalized such that the area under the curve is equal to 1. If method is "wavelength", data is normalized to 1 at specified wavelength. |
wavelength |
Numeric. Wavelength to normalize at. Must be specified if method is "wavelength". |
keepNormCoefficient |
Logical. Should the normalization coefficient be kept in the data? Defaults to FALSE |
The original data frame with the spectral data replaced by the normalized spectral data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.