Package cc.mallet.util

Examples of cc.mallet.util.Randoms.nextUniform()


    List<Factor> factors = new ArrayList<Factor> (vars.size ());

    // node factors
    for (int i = 0; i < len; i++) {
      double u = r.nextUniform (-4.0, 4.0);
      factors.add (new BoltzmannUnaryFactor (vars.get (i), u));
    }

    // edge factors
    for (int i = 0; i < len-1; i++) {
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.