signal_detection: Detect signals in background-removed spectra

Description Usage Arguments Value Examples

View source: R/SABARSI.R

Description

Detect signals in background-removed spectra

Usage

1
signal_detection(xr, fdr.c = 0.01, stren.c = 200, wid.c = 5)

Arguments

xr

A p*n data matrix of background-removed spectra, where n is the number of spectra, and p is the number of frequency channels.

fdr.c

A number between 0 and 1, which is the cutoff for FDR.

stren.c

A positive number for the cutoff of the strength of a signal.

wid.c

A positive number for the cutoff of the width of a signal.

Value

A list containing the indices of spectra with detected signals, tim.index, and a matrix recording the peaks of signals, peaks.

Examples

1
2
3
4
5
res <- signal_detection(xr)
# xr is the matrix of background removed spectra
# xr can be obtained by background_removal function

head(res$tim.index)  ## check the first few time indices of signals

sabarsi documentation built on Aug. 8, 2019, 5:02 p.m.