Exemple #1
0
        /// <summary>
        /// Adds a Gaussian distribution with given weight to the estimator
        /// </summary>
        /// <param name="distribution">The distribution instance to add</param>
        /// <param name="weight">The weight of the distribution</param>
        public void Add(Gaussian distribution, double weight)
        {
            double x, noiseVariance;

            distribution.GetMeanAndVariance(out x, out noiseVariance);
            mva.Add(x, noiseVariance, weight);
        }
Exemple #2
0
 /// <summary>
 /// Adds an observation
 /// </summary>
 /// <param name="x"></param>
 public void Add(double x)
 {
     if (!double.IsNaN(x))
     {
         mva.Add(x);
     }
 }