snv: Standard normal variate (SNV)

Description Usage Arguments Value Examples

Description

The function snv applys the standard normal variate to the spectral data.

Usage

1
snv(x, range = c(1, ncol(x)))

Arguments

x

data.frame or matrix with spectra in columns.

range

range of x used for calculating mean value and sd value. Specify as the column numbers.

Value

spectral data applied the standard normal variate

Examples

1
2
data(peach)
nir.snv <- snv(peach$NIR)

uwadaira/plsropt documentation built on May 3, 2019, 2:39 p.m.