/// <summary>
        /// Creates a full clone of this positive-definite matrix
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            PositiveDefiniteMatrix result = new PositiveDefiniteMatrix(rows, cols);

            result.SetTo(this);
            return(result);
        }
예제 #2
0
 public void SetTo(VectorMeanVarianceAccumulator value)
 {
     mean.SetTo(value.mean);
     cov.SetTo(value.cov);
     count = value.count;
 }
 /// <summary>
 /// Sets the state of this estimator from the specified estimator.
 /// </summary>
 /// <param name="value"></param>
 public void SetTo(MatrixMeanVarianceAccumulator value)
 {
     Mean.SetTo(value.Mean);
     Variance.SetTo(value.Variance);
     Count = value.Count;
 }