Learn R Programming

sabarsi (version 0.1.0)

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

Description

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

Usage

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

Run this code
# NOT RUN {
## 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.
# }

Run the code above in your browser using DataLab