View source: R/transform_spectra.R
normalize | R Documentation |
normalize
returns a spectra obj with vector normalized values.
Normalization value for each spectrum computed as sqrt(sum(x^2))
normalize(x, quiet = FALSE, ...) ## S3 method for class 'spectra' normalize(x, quiet = FALSE, ...)
x |
spectra object. bands must be strictly increasing |
quiet |
boolean. Warn about change in y value units? Defaults to FALSE |
... |
nothing |
spectra object with normalized spectra
normalize(spectra)
: Vector normalize spectra
Jose Eduardo Meireles
library(spectrolab) spec = as_spectra(spec_matrix_example, name_idx = 1) spec = normalize(spec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.