TSpectrum.FreqToFreqIndex Method

procedure FreqToFreqIndex(const Freq: TVec; const DstFreqIndex: TVecInt);

Computes range checked array indexes in the spectrum from frequency values.

#NameTypeDescription
1FreqTVec
2DstFreqIndexTVecInt

Result: stored in self (calling object)

Remarks:

The routine considers the value of the BandwidthL property, the HzRes and Bandwidth property. Any values outside of the valid range will be clipped to the edge of the valid range.