-
Notifications
You must be signed in to change notification settings - Fork 0
signal.InstFreq.Function.instFreqSingle_relWindow
dsp-collection / signal/InstFreq / instFreqSingle_relWindow
function instFreqSingle_relWindow(
samples,
position,
roughtMeasuringFrequency,
shiftFactor,
relWindowWidth,
windowFunction):
| InstFreqSingleResult
| undefined;Defined in: signal/InstFreq.ts:43
Computes the instantaneous frequency for a single measuring frequency. For this version, the window width is specified relative to the wavelength.
Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>
The input signal.
number
The rough position where to measure the instantaneous frequency. This is the rough center position of the window.
number
A rough value for the measuring frequency. The specified value is adjusted to the nearest value that allows a computation without subsampling. The unit of the specified frequency value is 1/samples (normalized frequency).
number
Shift factor, relative to the wavelength of the frequency. This shift is used for measuring the phase delta. A reasonable value is 0.25, which corresponds to 1/4 of the wavelength of the measuring frequency.
number
Window width relative the the wavelength. An integer specifying the number of oscillation cycles of the measuring frequency to be used for the window width.
| WindowFunction
| undefined
A window function or undefined for no windowing (i.e. for using a rectangular window).
| InstFreqSingleResult
| undefined
The result structure, or undefined if the instantaneous frequency cannot be computed.