Package DistLib

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



    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

        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

    public void intervalsComplete() {
        runSimulation();
    }

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

  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) );

    }
View Full Code Here

TOP

Related Classes of DistLib.uniform

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.