Package com.facebook.LinkBench.generators

Examples of com.facebook.LinkBench.generators.MotifDataGenerator.fill()


  public void testMotif() {
    MotifDataGenerator gen = new MotifDataGenerator();

    System.err.println("uniqueness 0.25");
    gen.init(0, 8, 0.25);
    byte data[] = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 0.0");
    gen.init(0, 8, 0.0);
    data = gen.fill(new Random(), new byte[64]);
View Full Code Here


    byte data[] = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 0.0");
    gen.init(0, 8, 0.0);
    data = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 0.05");
    gen.init(0, 8, 0.05);
    data = gen.fill(new Random(), new byte[64]);
View Full Code Here

    data = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 0.05");
    gen.init(0, 8, 0.05);
    data = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 1.0");
    gen.init(0, 8, 1.0);
    data = gen.fill(new Random(), new byte[64]);
View Full Code Here

    data = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);

    System.err.println("uniqueness 1.0");
    gen.init(0, 8, 1.0);
    data = gen.fill(new Random(), new byte[64]);
    printByteGrid(data);
  }

  /**
   * Estimate the compressibility of randomly generated data by
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.