ipeak
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Contents
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