Package aima.core.probability

Examples of aima.core.probability.Factor$Iterator


      if (hidden.contains(var)) {
        factors = sumOut(var, factors, bn);
      }
    }
    // return NORMALIZE(POINTWISE-PRODUCT(factors))
    Factor product = pointwiseProduct(factors);
    // Note: Want to ensure the order of the product matches the
    // query variables
    return ((ProbabilityTable) product.pointwiseProductPOS(_identity, X))
        .normalize();
  }
View Full Code Here


    return summedOutFactors;
  }

  private Factor pointwiseProduct(List<Factor> factors) {

    Factor product = factors.get(0);
    for (int i = 1; i < factors.size(); i++) {
      product = product.pointwiseProduct(factors.get(i));
    }

    return product;
  }
View Full Code Here

TOP

Related Classes of aima.core.probability.Factor$Iterator

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.