gapDer: [!] Gap-Segment Derivative

View source: R/gapDer.R

gapDerR Documentation

[!] Gap-Segment Derivative

Description

Gap-Segment derivatives of a data matrix, data.frame, vector or hyperSpec object.

Usage

gapDer(X, m = 1, w = 1, s = 1, delta.wav)

## Default S3 method:
gapDer(X, m = 1, w = 1, s = 1, ...)

## S3 method for class 'hyperSpec'
gapDer(X, m = 1, w = 1, s = 1, ...)

Arguments

X

a numeric matrix or vector' to transform (optionally a data frame that can be coerced to a numerical matrix).

m

an integer indicating the order of the derivative, larger than 1 (default is 1). Note that this function allows for high order derivatives (e.g. m = 6).

w

an integer indicating the gap size (must be odd and >=1), i.e. the spacing between points over which the derivative is computed.

s

an integer indicating the segment size (must be odd and >=1), i.e. the range over which the points are averaged (default = 1, i.e. no smoothing corresponding to Norris-Gap Derivative).

delta.wav

the sampling interval (or band spacing).

Details

Method gapDer.default is the function gapDer from package prospectr.

Method gapDer.default is the function gapDer from package prospectr.

The sampling interval specified with the delta.wav argument is used for scaling and get numerically correct derivatives.

The convolution function is written in C++/Rcpp for faster computations.

Value

A matrix, vector or hyperSpec object with the filtered signal(s).

Note

Find examples in gapDer.

Author(s)

Antoine Stevens (function prospectr::gapDer)
Vilmantas Gegzna (method gapDer.hyperSpec)

References

Hopkins (2002). NIR News 14(5), 10.

See Also

gapDer

Other methods for hyperSpec in spHelper: binning()

Other prospectr function for hyperSpec: binning()

Other spHelper functions for spectroscopy and hyperSpec: IQR_outliers(), binning(), file, hy2mat(), hyAdd_Label_wl(), hyAdd_Labels_PAP_PD_2014(), hyAdd_Labels_TD2009(), hyAdd(), hyDrop_NA(), hyGet_palette(), hyRm_palette(), mad_outliers(), mean_Nsd(), median_Nmad(), plot_hyPalette(), prepare_PAP_RK_2014__MATLAB_failui(), read.OOIBase32(), read.OceanView.header(), read.OceanView(), read.sp.csv2(), read3csv2hy(), replace_spc(), sd_outliers(), spStat(), sp_class_perform()


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.