Cut peak region
Extract a certain region around a signal peak
"Cut peak region" extracts an interval around a given signal maximum (peak) by cutting off values below a given threshold. This threshold is either absolute or relative, depending on the peak height.
Parameters of this function are
- peak, denoting the peak location on the abscissa (need not be given exactly),
- abs, which is a flag denoting whether the threshold is given as "relative (and
- the threshold itself.
y = CutPeak(x,peak,abs,thresh);
float peak, thresh;
Clip, Cut out