vecNorm: Vector Length Normalisation

View source: R/vecNorm.R

vecNormR Documentation

Vector Length Normalisation

Description

This function aims to normalise NMR spectra by their vector length.

Usage

vecNorm(X)

Arguments

X

The spectr(a/um) to be normalised. Can either be a single spectrum (in the form of an array) or multiple spectra (in the form of a matrix with columns being ppm variables and rows being the spectra)

Details

This function operates by squaring all values of the spectrum, summing them, and square rooting the result. Then each element from that spectrum is divided by this vector length.

Value

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

Author(s)

kylebario1@gmail.com

See Also

The methods paper that describes this method of normalisation can be found here: https://doi.org/10.1021/ac051632c

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

Examples

data(X)
vecNorm(X)
cat(dilf_vec)


kylebario/concentr8r documentation built on Nov. 9, 2022, 12:47 a.m.