Package ar.edu.unlp.yaqc4j.randoms

Examples of ar.edu.unlp.yaqc4j.randoms.Distribution


   */
  @Test
  @Generator(klass = double.class, generator = PercentageGen.class)
  public void testNullGen(final double d) {
    final int iterations = 10000;
    Distribution rand = Arbitrary.defaultDistribution();
    NullGen<Integer> ngen = new NullGen<Integer>(new IntegerSimpleGen(), d);
    int nulls = 0;
    for (int i = 0; i < iterations; ++i) {
      if (ngen.arbitrary(rand, 0, 100) == null) {
        nulls++;
View Full Code Here

TOP

Related Classes of ar.edu.unlp.yaqc4j.randoms.Distribution

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.