Exemple #1
0
        /// <summary>
        /// Returns a clone of this estimator.
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            MeanAccumulator result = new MeanAccumulator();

            result.SetTo(this);
            return(result);
        }
Exemple #2
0
 /// <summary>
 /// Sets the state of this estimator from the specified estimator.
 /// </summary>
 /// <param name="value"></param>
 public void SetTo(MeanAccumulator value)
 {
     Mean  = value.Mean;
     Count = value.Count;
 }
Exemple #3
0
 /// <summary>
 /// Adds all observations added to another accumulator.
 /// </summary>
 /// <param name="meanAccumulator"></param>
 public void Add(MeanAccumulator meanAccumulator)
 {
     Add(meanAccumulator.Mean, meanAccumulator.Count);
 }