gapDer.RdGap-Segment derivatives of a data matrix, data.frame,
vector or hyperSpec object.
gapDer(X, m = 1, w = 1, s = 1, delta.wav)
# S3 method for default
gapDer(X, m = 1, w = 1, s = 1, ...)
# S3 method for hyperSpec
gapDer(X, m = 1, w = 1, s = 1, ...)a numeric matrix or vector` to transform (optionally a data frame that can be coerced to a numerical matrix).
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).
an integer indicating the gap size (must be odd and >=1), i.e. the spacing between points over which the derivative is computed.
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).
the sampling interval (or band spacing).
A matrix, vector or hyperSpec object with
the filtered signal(s).
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.
Find examples in gapDer.
Hopkins (2002). NIR News 14(5), 10.
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()