Exemple #1
0
 /**
  * Copies source to dest.
  * <p>Neither source nor dest can be null.</p>
  *
  * @param source Variance to copy
  * @param dest Variance to copy to
  * @throws NullArgumentException if either source or dest is null
  */
 public static void copy(Variance source, Variance dest)
 {
     MathUtils.checkNotNull(source);
     MathUtils.checkNotNull(dest);
     dest.setData(source.getDataRef());
     dest.moment           = (SecondMoment)source.moment.copy();
     dest._isBiasCorrected = source._isBiasCorrected;
     dest.incMoment        = source.incMoment;
 }