merge_signals: Obtain the set of signature signals Merge groups of...

Description Usage Arguments Value Examples

View source: R/SABARSI.R

Description

Obtain the set of signature signals Merge groups of concatenated signals and give the time indices of signature signals.

Usage

1
merge_signals(xr, object, t.tol = 4, cor.tol = 0.5)

Arguments

xr

A p-length vector that represents a background-removed spectrum with p frequency channels.

object

An object obtained from signal_detection

t.tol

A positive integer, which is the tolerance of time difference when comparing two signals.

cor.tol

A number between 0 and 1. Two signals is considered to be similar enough if their correlation is higher than cor.tol.

Value

A vector recording the time indices of signature signals.

Examples

1
2
3
## xr is the matrix of background removed spectra.
res <- signal_detection(xr) ## detect the signals in xr
tim.index.ss <- merge_signals(xr = xr, object = res)  ## the set of signature signals.

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