Package InfoCollection

Examples of InfoCollection.NotInformativeException


   * Generates the true values from the random number generator according to
   * the prior.
   */
  public Truth GenerateTruth(Random rnd) throws NotInformativeException {
    if (!IsInformative())
      throw (new NotInformativeException());

    double[] value = new double[this.M]; // true mean vector
    double[] noiseBeta = new double[this.M]; // truth variance
    double[][] A = Sigma.toArray(); // Covariance Matrix
    double[][] L = new double[this.M][this.M]; // Cholesky Decomposition of
View Full Code Here


   * Generates the true values from the random number generator according to
   * the prior.
   */
  public Truth GenerateTruth(Random rnd) throws NotInformativeException {
    if (!IsInformative())
      throw (new NotInformativeException());
    double[] value = new double[M()];
    double[] sigma = Sigma();
    for (int i = 0; i < M(); i++) {
      value[i] = mu[i] + sigma[i] * rnd.nextGaussian();
    }
 
View Full Code Here

   * Generates the true values from the random number generator according to
   * the prior.
   */
  public Truth GenerateTruth(Random rnd) throws NotInformativeException {
    if (!IsInformative())
      throw (new NotInformativeException());
    double mean[] = new double[M()];
    double precision[] = new double[M()];
    RandomStream s = new MRG31k3p();
    for (int x = 0; x < M(); x++) {
      /*
 
View Full Code Here

TOP

Related Classes of InfoCollection.NotInformativeException

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.