/// <summary>
        /// Returns a copy of the estimator.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            BernoulliEstimator result = new BernoulliEstimator();

            result.SetTo(this);
            return(result);
        }
 /// <summary>
 /// Sets this estimator's state from the supplied estimator.
 /// </summary>
 /// <param name="value"></param>
 public void SetTo(BernoulliEstimator value)
 {
     N         = value.N;
     NProbTrue = value.NProbTrue;
 }