/** * Copy constructor, creates a new {@code FourthMoment} identical * to the {@code original} * * @param original the {@code FourthMoment} instance to copy */ public FourthMoment(FourthMoment original) { super(); copy(original, this); }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * * @param source Kurtosis to copy * @param dest Kurtosis to copy to * @throws NullPointerException if either source or dest is null */ public static void copy(Kurtosis source, Kurtosis dest) { dest.moment = source.moment.copy(); dest.incMoment = source.incMoment; }
/** * Copy constructor, creates a new {@code FourthMoment} identical * to the {@code original} * * @param original the {@code FourthMoment} instance to copy */ public FourthMoment(FourthMoment original) { super(); copy(original, this); }
/** * {@inheritDoc} */ @Override public FourthMoment copy() { FourthMoment result = new FourthMoment(); copy(this, result); return result; }
/** * {@inheritDoc} */ @Override public FourthMoment copy() { FourthMoment result = new FourthMoment(); copy(this, result); return result; }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * * @param source Kurtosis to copy * @param dest Kurtosis to copy to * @throws NullPointerException if either source or dest is null */ public static void copy(Kurtosis source, Kurtosis dest) { dest.setData(source.getDataRef()); dest.moment = source.moment.copy(); dest.incMoment = source.incMoment; }