diff options
author | avinashlalotra | 2025-04-26 20:09:12 +0530 |
---|---|---|
committer | avinashlalotra | 2025-04-26 20:09:12 +0530 |
commit | ea7dcdba3b83696b97cc431ee050b58f9a0f3507 (patch) | |
tree | 49ea8ba898b88535c261546f4e3accbdf4c83bdf /macros/spectral_xdf.sci | |
parent | 725d9ee2ddb254f57a896bb47e0e727759eb5901 (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.tar.gz FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.tar.bz2 FOSSEE-Signal-Processing-Toolbox-ea7dcdba3b83696b97cc431ee050b58f9a0f3507.zip |
formated source documentation pattern for generating docs
Diffstat (limited to 'macros/spectral_xdf.sci')
-rw-r--r-- | macros/spectral_xdf.sci | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/macros/spectral_xdf.sci b/macros/spectral_xdf.sci index 6081c71..e634801 100644 --- a/macros/spectral_xdf.sci +++ b/macros/spectral_xdf.sci @@ -1,19 +1,20 @@ -/* Description - Return the spectral density estimator given a data vector x, window name win, and bandwidth, b. - The window name, e.g., "triangle" or "rectangle" is used to search for a function called win_sw. - If win is omitted, the triangle window is used. - If b is omitted, 1 / sqrt (length (x)) is used. - Calling Sequence - spectral_xdf (x) - spectral_xdf (x, win) - spectral_xdf (x, win, b) - Parameters - x : Data vector - win : the window name . Default "triangle" is used . - b : Bandwidth . Default value 1/sqrt(length(x)) -Dependencies:fft1 ifft1 */ function sde = spectral_xdf (x, win, b) - // check x is a vector or not +// Description +// Return the spectral density estimator given a data vector x, window name win, and bandwidth, b. +// The window name, e.g., "triangle" or "rectangle" is used to search for a function called win_sw. +// If win is omitted, the triangle window is used. +// If b is omitted, 1 / sqrt (length (x)) is used. +// Calling Sequence +// spectral_xdf (x) +// spectral_xdf (x, win) +// spectral_xdf (x, win, b) +// Parameters +// x : Data vector +// win : the window name . Default "triangle" is used . +// b : Bandwidth . Default value 1/sqrt(length(x)) +// Dependencies:fft1 ifft1 + + // check x is a vector or not if ~isvector(x) error("spectral_xdf : x must a data vector") end |