コード例 #1
0
        /// <summary>
        /// Returns a clone of this estimator.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            DiscreteEstimator result = new DiscreteEstimator(Dimension);

            result.SetTo(this);
            return(result);
        }
コード例 #2
0
 /// <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);
 }