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

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)

Value

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

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.

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()

Author

kylebario1@gmail.com

Examples

data(X) vecNorm(X)
#> Calculating Dilfs... Done. #> Normalising X... Done. #>
cat(dilf_vec)
#> 6484819 48372508