Learn R Programming

ChemoSpec2D (version 0.5.0)

normSpectra2D: Normalize a Spectra2D Object

Description

This function carries out normalization of the spectra in a Spectra2D object. The current options are:

  • "zero2one" normalizes each 2D spectrum to a [0 … 1] scale.

  • "minusPlus" normalizes each 2D spectrum to a [-1 … 1] scale.

  • "TotInt" normalizes each 2D spectrum so that the total area is one.

Usage

normSpectra2D(spectra, method = "zero2one")

Arguments

spectra

An object of S3 class Spectra2D to be normalized.

method

Character string giving the method for normalization.

Value

An object of S3 class Spectra2D.

See Also

centscaleSpectra2D for another means of scaling.

Examples

Run this code
# NOT RUN {
data(MUD1)
MUD1n <- normSpectra2D(MUD1)
MUD1b <- removeFreq(MUD1, remF2 = 2.5 ~ 3.5)
MUD1bn <- normSpectra2D(MUD1b)
# }

Run the code above in your browser using DataLab