diff options
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); |