ir_normalize | R Documentation |
ir
objectir_normalize
normalizes the intensity values of infrared spectra.
Spectra can be normalized in three ways (value for argument method
):
Normalization so that the intensity values range in [0;1]. Note that for different spectra, for different wavenumber values the intensity may be 1 after normalization, depending on the location of the peak with the maximum height.
Normalization so that the intensity values of each spectrum sum to 1. Note that in the case of negative intensities values, these will be count as negative values during summation.
Normalization so that the intensity at a specified wavenumber value has value 1 and the minimum intensity value is 0.
ir_normalize(x, method = "area") ir_normalise(x, method = "area")
x |
An object of class |
method |
A character value specifying which normalization method to
apply. If |
An object of class ir
representing a normalized version of
x
.
# with method = "area" x <- ir::ir_sample_data %>% ir::ir_normalize(method = "area") # normalizing to a specific peak x <- ir::ir_sample_data %>% ir::ir_normalize(method = 1090)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.