Package cc.mallet.grmm.types

Examples of cc.mallet.grmm.types.Factor.duplicate()


      int k1 = keys1[i];
      ToMsgsIterator msgIt = new ToMsgsIterator (msgs, k1);
      while (msgIt.hasNext ()) {
        Factor msg = msgIt.next ();
        int from = msgIt.currentFromIdx ();
        copy.put (k1, from, msg.duplicate ());
      }
    }
    return copy;
  }
View Full Code Here


    /* make a copy of potentials */
    HashSet allPhi = new HashSet();
    for (Iterator i = model.factorsIterator (); i.hasNext(); ){
      Factor factor = (Factor) i.next ();
      allPhi.add(factor.duplicate());
    }

    Set nodes = model.variablesSet ();

    /* Eliminate each node in turn */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.