Skip to main content

sound:compute power spectral density

Version: 0.0.0

Description

Compute the Power Spectral Density (PSD) of a signal. If the signal's unit is Unit, then the PSD's unit is Unit^2 / Hz.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
input_signalfieldInput signal for PSD computation.
Pin 1
Required
window_typestringThe window used for the FFT computation, as a string.

Supported values are:

* BLACKMAN
* FLATTOP
* GAUSS
* HAMMING
* HANN
* RECTANGULAR
* TRIANGULAR

If no parameter is specified, the default value is 'HANN'.
Pin 2
Required
window_lengthint32Length of the analysis window in number of samples.
Pin 3
Required
fft_sizeint32FFT size in number of samples, must be a power of 2. Should be equal to or greater than window_length.
Pin 4
Required
overlapdoubleProportion of each window that overlaps with the next, must be in the range [0.0, 1.0[.

Outputs

OutputNameExpected type(s)Description
Pin 0output_signalfieldOne-sided PSD of the input signal, in Unit^2/Hz.

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: sound

Plugin: sound

Scripting name: None

Full name: None

Internal name: compute_power_spectral_density

License: avrxp_snd_level1

Changelog

  • Version 0.0.0: Initial release.