/// <summary>
        /// Returns a clone of this estimator.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            DiscreteEstimator result = new DiscreteEstimator(Dimension);

            result.SetTo(this);
            return(result);
        }
 /// <summary>
 /// Sets the state of this estimator from the specified estimator.
 /// </summary>
 /// <param name="value"></param>
 public void SetTo(DiscreteEstimator value)
 {
     N = value.N;
     NProb.SetTo(value.NProb);
 }