Package InfoCollection

Examples of InfoCollection.SamplingRule


   * 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;
    try {
View Full Code Here


    // and precision 2 on its value.  Each alternative has a
    // sampling precision of 0.5.
    Belief prior = new Belief(5,0,2,0.5);

    // Use knowledge gradient for our sampling allocation rule.
    SamplingRule alloc = new KG(prior);

    // Use a fixed stopping rule, that stops after 20 measurements.
    // More sophisticated stopping rules may also be used.
    // A simulation sampling rule is a combination of allocation
    // and stopping rule.
View Full Code Here

TOP

Related Classes of InfoCollection.SamplingRule

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.