@Override
 public DoubleGenerator new_instance() {
   RawGenerator g = RawGenerator.get(this);
   DoubleGenerator dg = new SimplestGeneralizedPowerLawGenerator();
   RawGenerator.set(dg, g.new_instance());
   return dg;
 }
Exemplo n.º 2
0
 public BooleanGenerator new_instance() {
   return new BooleanGenerator(falseProbability, g.new_instance());
 }
Exemplo n.º 3
0
 /**
  * Produces a boolean value according to the stored probability distribution
  *
  * @return A boolean value according to the stored probability distribution
  */
 public boolean next() {
   return (g.next() >= falseProbability);
 }