@Override public DoubleGenerator new_instance() { RawGenerator g = RawGenerator.get(this); DoubleGenerator dg = new SimplestGeneralizedPowerLawGenerator(); RawGenerator.set(dg, g.new_instance()); return dg; }
public BooleanGenerator new_instance() { return new BooleanGenerator(falseProbability, g.new_instance()); }
/** * 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); }