/** * Copy constructor, creates a new {@code Variance} identical * to the {@code original} * * @param original the {@code Variance} instance to copy * @throws NullArgumentException if original is null */ public Variance(Variance original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public Variance copy() { Variance result = new Variance(); // No try-catch or advertised exception because parameters are guaranteed non-null copy(this, result); return result; }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * * @param source StandardDeviation to copy * @param dest StandardDeviation to copy to * @throws NullArgumentException if either source or dest is null */ public static void copy(StandardDeviation source, StandardDeviation dest) throws NullArgumentException { MathUtils.checkNotNull(source); MathUtils.checkNotNull(dest); dest.setData(source.getDataRef()); dest.variance = source.variance.copy(); }
dest.variance = (Variance) dest.varianceImpl; } else { Variance.copy(source.variance, dest.variance);
/** * Copy constructor, creates a new {@code Variance} identical * to the {@code original} * * @param original the {@code Variance} instance to copy * @throws NullArgumentException if original is null */ public Variance(Variance original) throws NullArgumentException { copy(original, this); }
/** * Copy constructor, creates a new {@code Variance} identical * to the {@code original} * * @param original the {@code Variance} instance to copy * @throws NullArgumentException if original is null */ public Variance(Variance original) throws NullArgumentException { copy(original, this); }
/** * {@inheritDoc} */ @Override public Variance copy() { Variance result = new Variance(); // No try-catch or advertised exception because parameters are guaranteed non-null copy(this, result); return result; }
/** * {@inheritDoc} */ @Override public Variance copy() { Variance result = new Variance(); // No try-catch or advertised exception because parameters are guaranteed non-null copy(this, result); return result; }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * * @param source StandardDeviation to copy * @param dest StandardDeviation to copy to * @throws NullArgumentException if either source or dest is null */ public static void copy(StandardDeviation source, StandardDeviation dest) throws NullArgumentException { MathUtils.checkNotNull(source); MathUtils.checkNotNull(dest); dest.setData(source.getDataRef()); dest.variance = source.variance.copy(); }
/** * Copies source to dest. * <p>Neither source nor dest can be null.</p> * * @param source StandardDeviation to copy * @param dest StandardDeviation to copy to * @throws NullArgumentException if either source or dest is null */ public static void copy(StandardDeviation source, StandardDeviation dest) throws NullArgumentException { MathUtils.checkNotNull(source); MathUtils.checkNotNull(dest); dest.setData(source.getDataRef()); dest.variance = source.variance.copy(); }
dest.variance = (Variance) dest.varianceImpl; } else { Variance.copy(source.variance, dest.variance);
dest.variance = (Variance) dest.varianceImpl; } else { Variance.copy(source.variance, dest.variance);