Package be.ac.ulg.montefiore.run.distributions

Examples of be.ac.ulg.montefiore.run.distributions.GaussianDistribution


     * Proportions : 1/3, 2/3
     */
    ObservationReal[] observations = new ObservationReal[nbObservations];
   
    for (int g = 0, i = 0; g < 2; g++) {
      RandomDistribution d = new GaussianDistribution(g * 4.,
          1 + g);
     
      for (; i < ((g == 0) ? nbObservations / 3 : nbObservations); i++)
        observations[i] = new ObservationReal(d.generate());
    }
   
    // Fit distribution to observations
    OpdfGaussianMixture gm = new OpdfGaussianMixture(2);
   
View Full Code Here


   * Builds a new gaussian probability distribution with zero mean and
   * unit variance.
   */
  public OpdfGaussian()
  {
    distribution = new GaussianDistribution();
  }
View Full Code Here

   * @param mean The distribution's mean.
   * @param variance The distribution's variance.
   */
  public OpdfGaussian(double mean, double variance)
  {
    distribution = new GaussianDistribution(mean, variance);
  }
View Full Code Here

      double d = o.value - mean;
     
      variance += d * d * weights[i++];
    }
   
    distribution = new GaussianDistribution(mean, variance);
  }
View Full Code Here

TOP

Related Classes of be.ac.ulg.montefiore.run.distributions.GaussianDistribution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.