This function normalises the spectra based on a specific area of the spectra. This is helpful when one region is constant across all spectra.

roiNorm(X, ppm = NULL, sh = c(2.5, 2.75))

Arguments

X

A numerical matrix with rows being the spectra and columns being the chemical shift variables

ppm

A numerical array holding the chemical shift values of the X matrix. Only necessary when X is an array, not when X is a matrix

sh

The numerical values defining the lower and upper regions of the Region of Interest. default = c(3,3.1).

Value

This function assigns the normalised X argument (as X_roi) and the calculated dilution factors (as dilf_roi) to the global environment.

Details

roiNorm() operates similar to creNorm() except the normalising factor is not specificly creatinine, it can be what ever region is of interest.

See also

A description of Region of Interest Normalisation can be found in this paper: http://dx.doi.org/10.1007/s11306-018-1400-6

Other Attribute-Based: creNorm(), q1Norm(), taNorm(), vecNorm()

Author

kylebario1@gmail.com

Examples

data(X) roiNorm(X, sh = c(1.5,2))
#> Calculating Dilfs... Done. #> Normalising X... Done. #>
cat(dilf_roi)
#> 4476124 28609976