about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/potentials/Old
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bnt-master/BNT/potentials/Old')
-rw-r--r--sourcecodes/bnt-master/BNT/potentials/Old/CVS/Entries2
-rw-r--r--sourcecodes/bnt-master/BNT/potentials/Old/CVS/Repository1
-rw-r--r--sourcecodes/bnt-master/BNT/potentials/Old/CVS/Root1
-rw-r--r--sourcecodes/bnt-master/BNT/potentials/Old/comp_eff_node_sizes.m11
4 files changed, 15 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Entries b/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Entries
new file mode 100644
index 00000000..e7d041f1
--- /dev/null
+++ b/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Entries
@@ -0,0 +1,2 @@
+/comp_eff_node_sizes.m/1.1.1.1/Wed May 29 15:59:58 2002//
+D
diff --git a/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Repository b/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Repository
new file mode 100644
index 00000000..48670656
--- /dev/null
+++ b/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Repository
@@ -0,0 +1 @@
+FullBNT/BNT/potentials/Old
diff --git a/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Root b/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Root
new file mode 100644
index 00000000..f3bd14a6
--- /dev/null
+++ b/sourcecodes/bnt-master/BNT/potentials/Old/CVS/Root
@@ -0,0 +1 @@
+:ext:nsaunier@bnt.cvs.sourceforge.net:/cvsroot/bnt
diff --git a/sourcecodes/bnt-master/BNT/potentials/Old/comp_eff_node_sizes.m b/sourcecodes/bnt-master/BNT/potentials/Old/comp_eff_node_sizes.m
new file mode 100644
index 00000000..e245f602
--- /dev/null
+++ b/sourcecodes/bnt-master/BNT/potentials/Old/comp_eff_node_sizes.m
@@ -0,0 +1,11 @@
+function ens = comp_eff_node_sizes(ns, cnodes, ev, domain)
+
+dnodes = mysetdiff(1:length(ns), cnodes);
+odom = domain(~isemptycell(evidence(domain)));
+cdom = myintersect(cnodes, domain);
+ddom = myintersect(dnodes, domain);
+cobs = myintersect(cdom, odom);
+dobs = myintersect(ddom, odom);
+ens = ns; 
+ens(cobs) = 0;
+ens(dobs) = 1;