/** * Copy constructor, creates a new {@code FourthMoment} identical * to the {@code original} * * @param original the {@code FourthMoment} instance to copy * @throws NullArgumentException if original is null */ FourthMoment(FourthMoment original) throws NullArgumentException { super(); copy(original, this); }
/** * {@inheritDoc} */ @Override public FourthMoment copy() { FourthMoment result = new FourthMoment(); // No try-catch or advertised exception because args are guaranteed non-null 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 NullArgumentException if either source or dest is null */ public static void copy(Kurtosis source, Kurtosis dest) throws NullArgumentException { MathUtils.checkNotNull(source); MathUtils.checkNotNull(dest); dest.setData(source.getDataRef()); 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 * @throws NullArgumentException if original is null */ FourthMoment(FourthMoment original) throws NullArgumentException { super(); copy(original, this); }
/** * Copy constructor, creates a new {@code FourthMoment} identical * to the {@code original} * * @param original the {@code FourthMoment} instance to copy * @throws NullArgumentException if original is null */ FourthMoment(FourthMoment original) throws NullArgumentException { super(); copy(original, this); }
/** * {@inheritDoc} */ @Override public FourthMoment copy() { FourthMoment result = new FourthMoment(); // No try-catch or advertised exception because args are guaranteed non-null copy(this, result); return result; }
/** * {@inheritDoc} */ @Override public FourthMoment copy() { FourthMoment result = new FourthMoment(); // No try-catch or advertised exception because args are guaranteed non-null 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 NullArgumentException if either source or dest is null */ public static void copy(Kurtosis source, Kurtosis dest) throws NullArgumentException { MathUtils.checkNotNull(source); MathUtils.checkNotNull(dest); dest.setData(source.getDataRef()); dest.moment = source.moment.copy(); dest.incMoment = source.incMoment; }
/** * 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 NullArgumentException if either source or dest is null */ public static void copy(Kurtosis source, Kurtosis dest) throws NullArgumentException { MathUtils.checkNotNull(source); MathUtils.checkNotNull(dest); dest.setData(source.getDataRef()); dest.moment = source.moment.copy(); dest.incMoment = source.incMoment; }