binning: [!] Signal binning

View source: R/binning.R

binningR Documentation

[!] Signal binning

Description

Compute average values of a signal in pre-determined bins (col-wise subsets). The bin size can be determined either directly or by specifying the number of bins. Sometimes called boxcar transformation in signal processing

Usage

binning(X, bins, bin.size)

## Default S3 method:
binning(X, ...)

## S3 method for class 'hyperSpec'
binning(X, ...)

Arguments

X

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

bins

the number of bins.

bin.size

the desired size of the bins.

Details

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

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

Value

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

Note

Find examples in binning.

Author(s)

Antoine Stevens & Leonardo Ramirez-Lopez (function prospectr::binning)
Vilmantas Gegzna (method binning.hyperSpec)

See Also

binning

Other methods for hyperSpec in spHelper: gapDer()

Other prospectr function for hyperSpec: gapDer()

Other spHelper functions for spectroscopy and hyperSpec: IQR_outliers(), file, gapDer(), 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.