rescale_snv | R Documentation |
Subtracts the mean and scales to unit variance.
rescale_snv(x, y, ...)
## S4 method for signature 'numeric,numeric'
rescale_snv(x, y, ...)
## S4 method for signature 'ANY,missing'
rescale_snv(x, y, ...)
x , y |
A |
... |
Currently not used. |
Returns a list
with two components x
and y
.
N. Frerebeau
Barnes, R. J., Dhanoa, M. S. & Lister, S. J. (1989). Standard Normal Variate Transformation and De-Trending of Near-Infrared Diffuse Reflectance Spectra. Applied Spectroscopy, 43(5): 772-777. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1366/0003702894202201")}.
Other normalization methods:
rescale_area()
,
rescale_range()
,
rescale_total()
,
rescale_transform()
## Raman spectrometry
data("Raman")
## Subset from 200 to 800 1/cm
Raman <- signal_select(Raman, from = 200, to = 800)
## Plot spectrum
plot(Raman, type = "l", xlab = "Raman shift", ylab = "Intensity")
## Normalize SNV
Raman_snv <- rescale_snv(Raman)
plot(Raman_snv, type = "l", xlab = "Raman shift", ylab = "Intensity")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.