Package com.facebook.LinkBench.distributions

Examples of com.facebook.LinkBench.distributions.ZipfDistribution


    return 5;
  }

  @Override
  public ProbabilityDistribution getDist() {
    return new ZipfDistribution();
  }
View Full Code Here


    testSanityAccessDist(shuffled, min, max);
  }

  @Test
  public void testZipf() {
    ZipfDistribution z = new ZipfDistribution();
    Properties props = new Properties();
    props.setProperty("shape", "0.5");
    int min = 100, max = 200;
    z.init(min, max, props, "");
    ProbAccessDistribution unshuffled = new ProbAccessDistribution(z, null);
    testSanityAccessDist(unshuffled, min, max);

    ProbAccessDistribution shuffled = new ProbAccessDistribution(z,
                        new InvertibleShuffler(13, 25, max - min));
View Full Code Here

TOP

Related Classes of com.facebook.LinkBench.distributions.ZipfDistribution

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.