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