/** * 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() { BreitWignerMeanSquare copy = (BreitWignerMeanSquare) super.clone(); if (this.uniform != null) copy.uniform = new DoubleUniform(copy.randomGenerator); 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() { BreitWignerMeanSquare copy = (BreitWignerMeanSquare) super.clone(); if (this.uniform != null) copy.uniform = new DoubleUniform(copy.randomGenerator); return copy; }