Examples of asJavaRandom()


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

  }

  public static void testAsJava ()
  {
    Randoms mRand = new Randoms ();
    java.util.Random jRand = mRand.asJavaRandom ();

    int size = 10000;
    double[] vals = new double [size];
    for (int i = 0; i < size; i++) {
      vals[i] = jRand.nextGaussian ();
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.