SignalUtils::NearestMaximum Function

Overload List

#SignatureDescription
1int NearestMaximum(TVec *Data, const int StartIndex);Find the nearest peak.
2void NearestMaximum(TVec *Data, TVecInt *PeakIndexes);Find the nearest peak.

Overload 1: int NearestMaximum(TVec *Data, const int StartIndex);

Find the nearest peak.

#NameTypeDescription
1DataTVec *
2StartIndexconst int
Remarks:

Converge to the nearest maximum in Data, if the start position is at Data[StartIndex]. Returns the position of the found maximum: Data[i-1] < Data[i] > Data[i+1].

Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler

Overload 2: void NearestMaximum(TVec *Data, TVecInt *PeakIndexes);

Find the nearest peak.

#NameTypeDescription
1DataTVec *
2PeakIndexesTVecInt *
Remarks:

Converge to the nearest peak of Data, if the start position is at Data[PeakIndexes[i]]. Returns the index position of the found peaks in PeakIndexes.

Declared in Dew::Signal::Units::SignalUtils · Dew.Signal/Units.SignalUtils.h · Cross-compiler