Learn R Programming

RamanMP (version 1.0)

norm.SNV: Z-score normalisation

Description

The function performs a Standard normal variate (SNV) transformation of a spectra. Normalisation is performed subtracting at each peak intensity the mean intensity value of the spectra and then dividing for the standard deviation of the spectra intensities.

Usage

norm.SNV(spectra)

Arguments

spectra

A dataframe/matrix with frequency values as first column and at least one column with intensity values.

Value

Return the normalised spectra: the first column represent the frequency data, the second the intensity values normalised by Z-score

Examples

Run this code
# NOT RUN {
data("MPdatabase")
norm.database<-norm.SNV(MPdatabase)
norm.spectra<-norm.SNV(MPdatabase[,c(1,2)])
# }

Run the code above in your browser using DataLab