getLocalMaximumCWT: Identify the local maximum of each column in 2-D CWT...

Description Usage Arguments Value Author(s) See Also Examples

Description

Identify the local maximum of each column in 2-D CWT coefficients matrix by using a slide window. The size of slide window linearly changes from the coarse scale (bigger window size) to detail scale. The scale of CWT increases with the column index.

Usage

1
getLocalMaximumCWT(wCoefs, minWinSize= 5, amp.Th = 0)

Arguments

wCoefs

2-D CWT coefficients, each column corresponding to CWT coefficient at one scale. The column name is the scale.

minWinSize

The minimum slide window size used.

amp.Th

The minimum peak amplitude.

Value

return a matrix with same dimension as CWT coefficient matrix, wCoefs. The local maxima are marked as 1, others are 0.

Author(s)

Pan Du

See Also

localMaximum

Examples

1
2
3
4
5
6
	data(exampleMS)
	scales <- seq(1, 64, 3)
	wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
	
	localMax <- getLocalMaximumCWT(wCoefs)
	plotLocalMax(localMax)

Example output

Loading required package: waveslim

waveslim: Wavelet Method for 1/2/3D Signals (version = 1.7.5)

MassSpecWavelet documentation built on Nov. 8, 2020, 5:36 p.m.