/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { Poisson copy = (Poisson) super.clone(); if (this.pp != null) copy.pp = this.pp.clone(); return copy; }
/** * Returns a random number from the distribution; returns * <tt>(double) nextInt()</tt>. */ public double nextDouble() { return nextInt(); }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { Poisson copy = (Poisson) super.clone(); if (this.pp != null) copy.pp = this.pp.clone(); return copy; }
/** * Returns a random number from the distribution; returns * <tt>(double) nextInt()</tt>. */ public double nextDouble() { return nextInt(); }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { EmpiricalWalker copy = (EmpiricalWalker) super.clone(); if (this.cdf != null) copy.cdf = this.cdf.clone(); if (this.A != null) copy.A = this.A.clone(); if (this.F != null) copy.F = this.F.clone(); return copy; }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { EmpiricalWalker copy = (EmpiricalWalker) super.clone(); if (this.cdf != null) copy.cdf = this.cdf.clone(); if (this.A != null) copy.A = this.A.clone(); if (this.F != null) copy.F = this.F.clone(); return copy; }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { NegativeBinomial copy = (NegativeBinomial) super.clone(); if (this.poisson != null) copy.poisson = (Poisson) this.poisson.clone(); copy.poisson.setRandomGenerator(copy.getRandomGenerator()); if (this.gamma != null) copy.gamma = (Gamma) this.gamma.clone(); copy.gamma.setRandomGenerator(copy.getRandomGenerator()); return copy; }
/** * Returns a deep copy of the receiver; the copy will produce identical * sequences. After this call has returned, the copy and the receiver have * equal but separate state. * * @return a copy of the receiver. */ public Object clone() { NegativeBinomial copy = (NegativeBinomial) super.clone(); if (this.poisson != null) copy.poisson = (Poisson) this.poisson.clone(); copy.poisson.setRandomGenerator(copy.getRandomGenerator()); if (this.gamma != null) copy.gamma = (Gamma) this.gamma.clone(); copy.gamma.setRandomGenerator(copy.getRandomGenerator()); return copy; }