You are here: Symbol Reference > SignalTools Namespace > Classes > TSpectrum Class > public > ConvergeToMaximum Method > TSpectrum.ConvergeToMaximum Method (TVec, TVecInt)
DSP Master VCL
ContentsIndex
PreviousUpNext
TSpectrum.ConvergeToMaximum Method (TVec, TVecInt)

Searches for the closest peaks of the amplitude spectrum.

Pascal
procedure ConvergeToMaximum(const Freqs: TVec; const Center: TVecInt); overload;

Stores the new peak frequency back in to the Freqs parameter. The center holds the central spectral line and is guaranteed not to be on the edge of the array. Even if the maximum value is in fact on the edge of the array both Freqs and Center will be moved one line inside to starting index 1 and final index Length-2.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!