do_snv: Calculate Standard Normal Variation SNV

View source: R/gen_coreDataManip.r

do_snvR Documentation

Calculate Standard Normal Variation SNV

Description

Calculate the standard normal variation (SNV) by autoscaling the transformed NIR-data

Usage

do_snv(dataset, exportModel = FALSE)

Arguments

dataset

An object of class 'aquap_data" as produced by gfd or as can be extracted from a 'cube' via getcd.

exportModel

Logical. If a possible model should be stored in the set, (leave at FALSE).

Value

Returns the dataset with the transformed NIR data.

See Also

Other dpt modules documentation: do_detrend(), do_emsc(), do_gapDer(), do_msc(), do_sgolay(), dpt_modules

Examples

## Not run: 
fd <- gfd() # get the full dataset
fd <- selectWls(fd, 1100, 1800)
fd_snv <- do_snv(fd)
plot(fd - fd_snv, pg.where="", pg.main="| snv subtracted")

## End(Not run)

bpollner/aquap2 documentation built on March 29, 2024, 7:33 a.m.