Examples of Poisson


Examples of cern.jet.random.Poisson

    ////                         protected methods                 ////

    /** Method that is called after _randomNumberGenerator is changed.
     */
    protected void _createdNewRandomNumberGenerator() {
        _generator = new Poisson(1.0, _randomNumberGenerator);
    }
View Full Code Here

Examples of cern.jet.random.Poisson

        halfReadLength = readLength / 2;
        errorRate = QualityUtils.qualToErrorProb((byte)phredErrorRate);
        readQuals = new byte[readLength];
        Arrays.fill(readQuals, (byte)phredErrorRate);
        if ( samplingMode == ReadSamplingMode.POISSON )
           poissonRandom = new Poisson(readDepth, new MersenneTwister((int)RANDOM_SEED));
    }
View Full Code Here

Examples of org.apache.mahout.math.jet.random.Poisson

  @Test
  public void testRate() {
    Random gen = RandomUtils.getRandom();

    Poisson p = new Poisson(5, gen);
    double lastT = 0;

    double[] k = new double[1000];
    double[] t = new double[1000];
    for (int i = 1; i < 1000; i++) {
      // we sample every 5-15 seconds
      double dt = gen.nextDouble() * 10 + 5;
      t[i] = lastT + dt;

      // at those points, we get a Poisson count
      k[i] = p.nextInt(dt * 0.2);
      lastT = t[i];
    }

    OnlineExponentialAverage averager = new OnlineExponentialAverage(2000);

View Full Code Here

Examples of org.boris.expr.function.excel.POISSON

        assertEquals(eval(p, 4, 3), 24.);
        assertEquals(eval(p, 100, 3), 970200.);
    }

    public void testPOISSON() throws Exception {
        POISSON p = new POISSON();
        fail("POISSON not implemented");
    }
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.