Package cern.jet.random.engine

Examples of cern.jet.random.engine.DRand


  System.out.println("Got N=" + N);

  /*
   * Set up the QuantileBin1D object
   */
  DRand rand = new DRand(new Date());
  QuantileBin1D qAccum = new QuantileBin1D(false,
             N,
             1.e-4,
             1.e-3,
             200,
             rand,
             false,
             false,
             2);

  DynamicBin1D dbin = new DynamicBin1D();
 
  /*
   * Use a new random number generator to generate numExamples
   * random gaussians, and add them to the QuantileBin1D
   */
  Uniform dataRand = new Uniform(new DRand(7757));
  for (int i = 1; i <= numExamples; i++) {
    double gauss = dataRand.nextDouble();
      qAccum.add(gauss);
      dbin.add(gauss);
  }
View Full Code Here


  System.out.println("Got N=" + N);

  /*
   * Set up the QuantileBin1D object
   */
  DRand rand = new DRand(new Date());
  QuantileBin1D qAccum = new QuantileBin1D(false,
             N,
             1.e-4,
             1.e-3,
             200,
             rand,
             false,
             false,
             2);

  DynamicBin1D dbin = new DynamicBin1D();
 
  /*
   * Use a new random number generator to generate numExamples
   * random gaussians, and add them to the QuantileBin1D
   */
  Uniform dataRand = new Uniform(new DRand(7757));
  for (int i = 1; i <= numExamples; i++) {
    double gauss = dataRand.nextDouble();
      qAccum.add(gauss);
      dbin.add(gauss);
  }
View Full Code Here

        _generatorClassName = generatorClassValue;

        if ((generatorClassValue == null)
                || generatorClassValue.equals("DRand")) {
            _randomNumberGenerator = new DRand((int) seedValue);
        } else if (generatorClassValue.equals("MersenneTwister (MT19937)")) {
            _randomNumberGenerator = new MersenneTwister((int) seedValue);
        } else if (generatorClassValue.equals("Ranecu")) {
            _randomNumberGenerator = new Ranecu((int) seedValue);
        } else if (generatorClassValue.equals("Ranlux")) {
View Full Code Here

TOP

Related Classes of cern.jet.random.engine.DRand

Copyright © 2018 www.massapicom. 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.