Examples of Uniform


Examples of DistLib.uniform

  System.err.println("Quantile at 0.5 " +
         normal.quantile( 0.5, 0.0, 1.0 ) );

  System.err.println("10 Random values from N(0, 1): ");

  uniform PRNG = new uniform();

  for(int i=0; i<10; i++)
      //System.err.println( normal.random(0.0,1.0, PRNG) );
        System.err.println( PRNG.random() );
    }
View Full Code Here

Examples of DistLib.uniform


    private static final boolean USE_RATIO = true;
    private void runSimulation() {
        long start = System.currentTimeMillis();
        uniform random = new uniform();

        int sampleCount = Settings.getInt("ev.simulationSize", BOOTSTRAP_SIZE);
        if (USE_RATIO) {
            double factor = Math.exp(0.75 * Math.log(randomObjects.size()));
            sampleCount = (int) (sampleCount / factor);
View Full Code Here

Examples of DistLib.uniform

        rational = Math.sqrt((s*s*(1 + (s*s/2))) / n);
        base = logmean + s*s/2;
    }

    private double[] generateBootstrapSamples() {
        uniform u = new uniform();
        int bootstrapSize = Settings.getInt("logCI.bootstrapSize", 2000);
        double[] samples = new double[bootstrapSize];
        for (int i = bootstrapSize;   i-- > 0; )
             samples[i] = generateBootstrapSample(u, u, numSamples, logstd);
        Arrays.sort(samples);
View Full Code Here

Examples of DistLib.uniform

    public void intervalsComplete() {
        runSimulation();
    }

    protected void runSimulation() {
        u = new uniform();
        super.runSimulation();
    }
View Full Code Here

Examples of cc.plural.ecs.renderer.Uniform

            type.clear();
            String name = GL20.glGetActiveUniform(programHandle, i, 100, type);
            int location = GL20.glGetUniformLocation(programHandle, name);
            int typeValue = type.get(NO_SHADER);

            Uniform uniform = new LWJGLUniform();
            uniform.name = name;
            uniform.location = location;
            uniform.type = typeValue;

            uniforms[i] = uniform;
View Full Code Here

Examples of cern.jet.random.Uniform

* @param weight the weight.
* @param randomGenerator a random number generator. Set this parameter to <tt>null</tt> to use the default random number generator.
*/
public WeightedRandomSampler(int weight, RandomEngine randomGenerator) {
  if (randomGenerator==null) randomGenerator = cern.jet.random.AbstractDistribution.makeDefaultGenerator();
  this.generator = new Uniform(randomGenerator);
  setWeight(weight);
}
View Full Code Here

Examples of cern.jet.random.Uniform

 
  /*
   * 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

Examples of cern.jet.random.Uniform

* @param weight the weight.
* @param randomGenerator a random number generator. Set this parameter to <tt>null</tt> to use the default random number generator.
*/
public WeightedRandomSampler(int weight, RandomEngine randomGenerator) {
  if (randomGenerator==null) randomGenerator = cern.jet.random.AbstractDistribution.makeDefaultGenerator();
  this.generator = new Uniform(randomGenerator);
  setWeight(weight);
}
View Full Code Here

Examples of cern.jet.random.Uniform

 
  /*
   * 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

Examples of cern.jet.random.Uniform

    distributions = new HashMap<String, AbstractDistribution>();

    if (logger.isDebugEnabled()) {
      distributions.put(UNIFORM_DEFAULT, new UUniformDistributionController(generators.get(null)));
    } else {
      distributions.put(UNIFORM_DEFAULT, new Uniform(generators.get(null)));
    }
  }
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.