Package org.encog.ml.bayesian.parse

Examples of org.encog.ml.bayesian.parse.ParseProbability


   * Define the probability for an event.
   * @param line The event.
   * @param probability The probability.
   */
  public void defineProbability(String line, double probability) {
    ParseProbability parse = new ParseProbability(this);
    ParsedProbability parsedProbability = parse.parse(line);
    parsedProbability.defineTruthTable(this, probability);
  }
View Full Code Here


  /**
   * Define a relationship.
   * @param line The relationship to define.
   */
  public void defineRelationship(String line) {
    ParseProbability parse = new ParseProbability(this);
    ParsedProbability parsedProbability = parse.parse(line);
    parsedProbability.defineRelationships(this);
  }
View Full Code Here

  public double performQuery(String line) {
    if( this.query==null ) {
      throw new BayesianError("This Bayesian network does not have a query to define.");
    }
   
    ParseProbability parse = new ParseProbability(this);
    ParsedProbability parsedProbability = parse.parse(line);
   
    // create a temp query
    BayesianQuery q = this.query.clone();
   
    // first, mark all events as hidden
View Full Code Here

TOP

Related Classes of org.encog.ml.bayesian.parse.ParseProbability

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.