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

            result.SetTo(this);
            return(result);
        }
Exemple #2
0
 /// <summary>
 /// Creates a new Gaussian estimator
 /// </summary>
 public GaussianEstimator()
 {
     mva = new MeanVarianceAccumulator();
 }
Exemple #3
0
 /// <summary>
 /// Sets the state of this estimator from the specified estimator.
 /// </summary>
 /// <param name="value"></param>
 public void SetTo(MeanVarianceAccumulator value)
 {
     Mean     = value.Mean;
     Variance = value.Variance;
     Count    = value.Count;
 }
Exemple #4
0
 /// <summary>
 /// Creates a new Gamma estimator
 /// </summary>
 public GammaEstimator()
 {
     mva = new MeanVarianceAccumulator();
 }