Skip to contents

Computes the spectral derivative using Savitzky-Golay differentiation. Shorthand for hs_smooth() with deriv > 0.

Usage

hs_derivative(cube, order = 1L, window = 5L)

Arguments

cube

An hsi_cube object.

order

Integer. Derivative order. Default 1.

window

Integer (odd). SG window size. Default 5.

Value

An hsi_cube object with derivative spectra.

Examples

cube <- hs_example_cube()
d1 <- hs_derivative(cube, order = 1)