diff options
author | Calvin <calvin@EESI> | 2013-03-26 13:21:36 -0400 |
---|---|---|
committer | Calvin <calvin@EESI> | 2013-03-26 13:21:36 -0400 |
commit | 94da049a53423a9aca04d8376b75347ca7eadcbe (patch) | |
tree | 75714a7e2b02b4a9cbd51f0d43b16b6e92dbd4f6 /FEAST/MIToolbox/h.m | |
parent | 15094127277f73541a1c2f887caf1c7edda7fdb5 (diff) |
moved FEAST Libraries
Diffstat (limited to 'FEAST/MIToolbox/h.m')
-rw-r--r-- | FEAST/MIToolbox/h.m | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FEAST/MIToolbox/h.m b/FEAST/MIToolbox/h.m new file mode 100644 index 0000000..8fd8999 --- /dev/null +++ b/FEAST/MIToolbox/h.m @@ -0,0 +1,13 @@ +function output = h(X) +%function output = h(X) +%X can be a matrix which is converted into a joint variable before calculation +%expects variables to be column-wise +% +%returns the entropy of X, H(X) + +if (size(X,2)>1) + mergedVector = MIToolboxMex(3,X); +else + mergedVector = X; +end +[output] = MIToolboxMex(4,mergedVector); |