do_gapDer: Perform gap-segment derivatives

View source: R/gen_coreDataManip.r

do_gapDerR Documentation

Perform gap-segment derivatives

Description

Performs gap-segment derivatives on the provided dataset. The behaviour of the filter can be modified via its arguments, please see also the documentation for gapDer.

Usage

do_gapDer(dataset, m = 1, w = 1, s = 1, deltaW, exportModel = FALSE)

Arguments

dataset

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

m

Numeric length one. The order of the derivative, can be between 1 and 4. Default is 1.

w

Numeric length one. The filter length (should be odd), ie. the spacing between points over which the derivative is computed. Default is 1.

s

Numeric length one. The segment size, i.e. the range over which the points are averaged.Default is 1.

deltaW

Numeric length one. The sampling interval / band spacing. Default is 1.

exportModel

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

Details

The first column of the wavelengths and the last one get doubled in order to have the same number of wavelengths in the resulting dataset as in the original dataset. The underlying function is gapDer.

Note

The documentation for the parameters was mostly taken from gapDer by Antoine Stevens.

See Also

gapDer

Other Data pre-treatment functions: [,aquap_data-method, do_addNoise(), do_avg(), do_blowup(), do_detrend(), do_emsc(), do_msc(), do_resampleNIR(), do_sgolay(), dpt_modules, selectWls(), ssc()

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

Examples

## Not run: 
fd <- gfd()
fd_gsd <- do_gapDer(fd)
fd_gsd2 <- do_gapDer(fd, 1,11,13,1)
plot(fd_gsd - fd_gsd2)

## End(Not run)

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