xfNorm.Rd
This function utilises an array of dilution coefficients acquired externally to normalise the spectra.
xfNorm(X, xfactor)
X | A numerical matrix with rows being the spectra and columns being the chemical shift variables |
---|---|
xfactor | A numerical array of values that correspond to the dilution coefficients of the spectra. Must be row-matched to the provided X matrix. |
This function returns a list with:
The normalised X matrix in the first list element, and
A numerical array of the corresponding dilution factors in the second.
Following the example below will extract the results quickly and easily.
xfNorm()
works by dividing all values within a spectrum by the value of its external factor.
#> Normalising X... Done. #>