Esempio n. 1
0
        /// <summary>
        /// Returns a clone of this estimator.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            DirichletEstimator result = new DirichletEstimator(Dimension);

            result.SetTo(this);
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Sets the state of this estimator from the specified estimator.
 /// </summary>
 /// <param name="value"></param>
 public void SetTo(DirichletEstimator value)
 {
     N = value.N;
     Sum.SetTo(value.Sum);
     Sum2.SetTo(value.Sum2);
 }