aboutsummaryrefslogtreecommitdiff
path: root/FEAST/MIToolbox/joint.m
diff options
context:
space:
mode:
Diffstat (limited to 'FEAST/MIToolbox/joint.m')
-rw-r--r--FEAST/MIToolbox/joint.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/FEAST/MIToolbox/joint.m b/FEAST/MIToolbox/joint.m
new file mode 100644
index 0000000..f40ff25
--- /dev/null
+++ b/FEAST/MIToolbox/joint.m
@@ -0,0 +1,16 @@
+function output = joint(X,arities)
+%function output = joint(X,arities)
+%returns the joint random variable of the matrix X
+%assuming the variables are in columns
+%
+%if passed a vector of the arities then it produces a correct
+%joint variable, otherwise it may not include all states
+%
+%if the joint variable is only compared with variables using the same samples,
+%then arity information is not required
+
+if (nargin == 2)
+ [output] = MIToolboxMex(3,X,arities);
+else
+ [output] = MIToolboxMex(3,X);
+end