Programmer Guide/Command Reference/EVAL/ipeak: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 17:31, 18 November 2010

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