meanfilter: Apply mean filter

Description Usage Arguments Value Author(s) See Also Examples

View source: R/speclib_smooth.R

Description

Apply mean filter to data frame with spectra as rows and bands as columns. Filter size is passed as number of bands averaged at both sites of the respective band value.

Usage

1

Arguments

spectra

Data frame containing spectra

p

Filter size.

Value

Filtered data frame of same dimension as input data frame

Author(s)

Lukas Lehnert

See Also

smoothSpeclib

Examples

1
2
3
4
5
6
data(spectral_data)

spectra_filtered <- meanfilter(spectra(spectral_data), p = 10)
spectra(spectral_data) <- spectra_filtered 

  

hsdar documentation built on May 30, 2017, 6:23 a.m.