summaryrefslogtreecommitdiff
path: root/macros/spectral_xdf.sci
diff options
context:
space:
mode:
authorbgtushar2017-11-27 11:14:24 +0530
committerGitHub2017-11-27 11:14:24 +0530
commit25a88252ee49c73acb18232f6e916d7742a1af80 (patch)
tree9161ea9a7940e36a21f0855a7805e24f7b002d8a /macros/spectral_xdf.sci
parente9ab4b0b52db51be30f4ac3d07673c20b48da13c (diff)
parentff8b1285a880cc28c68d8b224b20b8ccff8e5422 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.tar.gz
FOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.tar.bz2
FOSSEE-Signal-Processing-Toolbox-25a88252ee49c73acb18232f6e916d7742a1af80.zip
Merge pull request #5 from abhinavdronamraju/master
Help files created and Updated Readme.md
Diffstat (limited to 'macros/spectral_xdf.sci')
-rw-r--r--macros/spectral_xdf.sci15
1 files changed, 14 insertions, 1 deletions
diff --git a/macros/spectral_xdf.sci b/macros/spectral_xdf.sci
index fe93327..f0d457b 100644
--- a/macros/spectral_xdf.sci
+++ b/macros/spectral_xdf.sci
@@ -1,5 +1,18 @@
function y= spectral_xdf(x, varargin)
-
+// Return the spectral density estimator given a data vector X, window name WIN, and bandwidth, B.
+//Calling Sequence
+//spectral_xdf(X)
+//spectral_xdf(X, WIN)
+//spectral_xdf(X, WIN, B)
+//Parameters
+//X: Data Vector
+//WIN: Window names
+//B: Bandwidth
+//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_lw'.
+//If WIN is omitted, the triangle window is used.
+//If B is omitted, '1 / sqrt (length (X))' is used.
funcprot(0);
rhs= argn(2);
if(rhs<1 | rhs>3)