示例#1
0
文件: IJGP.java 项目: acares/ProbCog
 public String toString() {
   StringBuffer sb = new StringBuffer();
   sb.append(StringTool.join(", ", this.cpts));
   sb.append("; ");
   sb.append(StringTool.join(", ", this.functions));
   return sb.toString();
 }
示例#2
0
文件: IJGP.java 项目: acares/ProbCog
 public String toString() {
   return "Supernode["
       + StringTool.join(",", nodes)
       + "; "
       + StringTool.join("; ", this.functions)
       + "]";
 }
示例#3
0
文件: IJGP.java 项目: acares/ProbCog
 public void print(PrintStream out) {
   int i = 0;
   for (Node n : nodes) {
     out.printf("Node%d: %s\n", i++, StringTool.join(", ", n.nodes));
     for (CPF cpf : n.functions) {
       out.printf(
           "  CPFS: %s | %s\n",
           cpf.getDomainProduct()[0], StringTool.join(", ", cpf.getDomainProduct()));
     }
   }
 }
示例#4
0
文件: IJGP.java 项目: acares/ProbCog
 public String toString() {
   StringBuffer sb = new StringBuffer("MF[");
   sb.append("scope: " + StringTool.join(", ", scope));
   sb.append("; CPFs:");
   int i = 0;
   for (BeliefNode n : this.cpts) {
     if (i++ > 0) sb.append("; ");
     sb.append(n.getCPF().toString());
   }
   sb.append("; children: ");
   sb.append(StringTool.join("; ", this.childFunctions));
   sb.append("]");
   return sb.toString();
 }
示例#5
0
 public String[] getParameterSet(RelationKey key, String[] keyValues) {
   // System.out.println("doing lookup for " + this.key + " with " +
   // StringTool.join(", ", keyValues));
   HashMap<String, String[]> m = functionalDependencies.get(key);
   if (m == null) return null;
   return m.get(StringTool.join(",", keyValues));
 }
示例#6
0
 public void printDomain(PrintStream out) {
   for (Entry<String, HashSet<String>> e : domains.entrySet()) {
     out.println(e.getKey() + ": " + StringTool.join(", ", e.getValue()));
   }
 }
示例#7
0
文件: IJGP.java 项目: acares/ProbCog
 public String getShortName() {
   return StringTool.join(",", nodes);
 }
示例#8
0
文件: IJGP.java 项目: acares/ProbCog
 public String toString() {
   return StringTool.join(" ", vars);
 }
示例#9
0
文件: IJGP.java 项目: acares/ProbCog
 public String toString() {
   return "Minibucket[" + StringTool.join(" ", items) + "]";
 }
示例#10
0
文件: IJGP.java 项目: acares/ProbCog
 public String toString() {
   return "[" + StringTool.join(" ", this.nodes) + "]";
 }