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

            result.SetTo(this);
            return(result);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new Gaussian estimator
 /// </summary>
 public GaussianEstimator()
 {
     mva = new MeanVarianceAccumulator();
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new Gamma estimator
 /// </summary>
 public GammaEstimator()
 {
     mva = new MeanVarianceAccumulator();
 }