Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Approximate(const srcFreq: TVec; const dstAmplt: TVec; const dstPhase: TVec); | Finds the maximum of the peak at Freq and applies interpolation. |
| 2 | procedure Approximate(const Freqs: TVec; const freqIdx: TVecInt); | Finds the maximum of the peak at Freq and applies interpolation. |
| 3 | function Approximate(Freq: Double): Double; | Finds the maximum of the peak at Freq and applies interpolation. |
Overload 1: procedure Approximate(const srcFreq: TVec; const dstAmplt: TVec; const dstPhase: TVec);
Finds the maximum of the peak at Freq and applies interpolation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | srcFreq | TVec | |
| 2 | dstAmplt | TVec | |
| 3 | dstPhase | TVec |
Result: stored in self (calling object)
Remarks:
Finds the nearest peak and applies interpolation for each srcFreq. It stores the amplitude and phase in to dstAmplt and dstPhase.
Overload 2: procedure Approximate(const Freqs: TVec; const freqIdx: TVecInt);
Finds the maximum of the peak at Freq and applies interpolation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Freqs | TVec | |
| 2 | freqIdx | TVecInt |
Result: stored in self (calling object)
Overload 3: function Approximate(Freq: Double): Double;
Finds the maximum of the peak at Freq and applies interpolation.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Freq | Double | scalar |
Returns: Double
Remarks:
Applies the peak interpolation methods, specified with the interpolation property, to get a better estimate of the frequency of the peak then Freq. The value of the Freq can be the frequency of the closest frequency bin in the frequency spectrum.