ipeak

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 14:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
ipeak

Search the function y for local peaks and return either a scalar or a vector with indexes of the peak values. The result can, for example, be passed directly to qinterp() for interpolation. This is a subcommand of the EVAL command.

Usage:

ipeak(y, npeaks, istart, iend, nwidth, ymin)

Parameters:
y
The data vector (the function).
npeaks
The maximum number of peaks. The default is 1.
istart
The index to start with. The default is 0.
iend
The index to end with. The default is y[1nrow]-1.
nwidth
The width of the peak (+/-). The default is 1.
ymin
The threshold (a scalar or a vector). By default there is no threshold.
Return Type:

scalar or vector

Navigation menu

Personal tools