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