Package InfoCollection

Examples of InfoCollection.NormalTruth


   * alarms down. To really check, you have to turn on debug and see if all
   * the ones where there were disagreements are the result of ties by looking
   * at the r values before they were rounded.
   */
  public static boolean test2() {
    NormalTruth truth = NormalTruth.SlippageExample();
    Belief b = new Belief(truth.SamplingPrecision());
    InfoCollection.SamplingRule p1 = new ChIn(6, 1, b);
    InfoCollection.SamplingRule p2 = new InfoCollection.IndependentNormalVarianceKnown.ChIn(
        6, 1);
    int numDisagreements = 0;
    boolean ok = true;
View Full Code Here


      value[i] = this.mu[i] + s;
      noiseBeta[i] = 1 / this.mvar[i];
    }

    // returns NormalTruth object
    return new NormalTruth(value, noiseBeta);
  }
View Full Code Here

    double[] value = new double[M()];
    double[] sigma = Sigma();
    for (int i = 0; i < M(); i++) {
      value[i] = mu[i] + sigma[i] * rnd.nextGaussian();
    }
    return new NormalTruth(value, noiseBeta);
  }
View Full Code Here

   * the measurement decision is supposed to chosen randomly. Then, in
   * CheckEquivalence, I could compare the sets and see if they have non-empty
   * intersection.
   */
  public static boolean test3() {
    NormalTruth truth = NormalTruth.SlippageExample();
    Belief b = new Belief(truth.SamplingPrecision());
    SamplingRule p1, p2;
    p1 = new LL1Simple(b);
    // passing 1 to the variance-known version turns on error checking.
    p2 = new InfoCollection.IndependentNormalVarianceKnown.KG(1);
    int numDisagreements = 0;
View Full Code Here

       */
      precision[x] = GammaGen.nextDouble(s, a[x], b[x]);
      mean[x] = mu[x] + StrictMath.sqrt(precision[x])
          * rnd.nextGaussian();
    }
    return new NormalTruth(mean, precision);
  }
View Full Code Here

TOP

Related Classes of InfoCollection.NormalTruth

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.