make_rel | R Documentation |
make_rel()
converts intensities x
into relative values between
0 and 1 using the standard normalization equation.
If na.rm
is TRUE
, missing values are removed before the
computation proceeds.
make_rel(x, ...)
## Default S3 method:
make_rel(x, na.rm = FALSE, ...)
## S3 method for class 'OpenSpecy'
make_rel(x, na.rm = FALSE, ...)
x |
a numeric vector or an R OpenSpecy object |
na.rm |
logical. Should missing values be removed? |
... |
further arguments passed to |
make_rel()
is used to retain the relative height proportions between
spectra while avoiding the large numbers that can result from some spectral
instruments.
make_rel()
return numeric vectors (if vector provided) or an
OpenSpecy
object with the normalized intensity data.
Win Cowger, Zacharias Steinmetz
min()
and round()
;
adj_intens()
for log transformation functions;
conform_spec()
for conforming wavenumbers of an
OpenSpecy
object to be matched with a reference library
make_rel(c(-1000, -1, 0, 1, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.