View source: R/gen_coreDataManip.r
do_gapDer | R Documentation |
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
.
do_gapDer(dataset, m = 1, w = 1, s = 1, deltaW, exportModel = FALSE)
dataset |
An object of class 'aquap_data" as produced by
|
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 |
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
.
The documentation for the parameters was mostly taken from
gapDer
by Antoine Stevens.
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
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.