DewDSPMasterNET
NearestMaximum Routine
Summary
Find the nearest peak.

Unit
SignalUtils

Declaration
Function NearestMaximum(Data: TVec; var Index: integer): boolean;

Description
Converge to the nearest peak of Data, if the start position is at Data[Index]. Returns the position of the found peak in Index. The function returns True if a True maximum was found: Value[i-1] < Max[i] > Value[i+1]. The first and last sample can not be True maximums.
Categories
Signal statistics

Copyright 2008 Dew Research
http://www.dewresearch.com