Documentation of 'org.encog.ml.bayesian.table.BayesianTable' Java class
BayesianTable
org.encog.ml.bayesian.table

Class BayesianTable

  • All Implemented Interfaces:
    java.io.Serializable


    public class BayesianTable
    extends java.lang.Object
    implements java.io.Serializable
    Holds a Bayesian truth table.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addLine(double prob, boolean result, boolean... args)
      Add a new line.
      void addLine(double prob, int result, boolean... args)
      Add a new line.
      void addLine(double prob, int result, int... args)
      Add a new line.
      TableLine findLine(int result, int[] args)
      Find the specified truth table line.
      int generateRandom(int... args)
      Generate a random sampling based on this truth table.
      java.util.List<TableLine> getLines() 
      int getMaxLines() 
      void reset()
      Reset the truth table to zero.
      java.lang.String toString()
      void validate()
      Validate the truth table.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • reset

        public void reset()
        Reset the truth table to zero.
      • addLine

        public void addLine(double prob,
                            boolean result,
                            boolean... args)
        Add a new line.
        Parameters:
        prob - The probability.
        result - The resulting probability.
        args - The arguments.
      • addLine

        public void addLine(double prob,
                            int result,
                            boolean... args)
        Add a new line.
        Parameters:
        prob - The probability.
        result - The resulting probability.
        args - The arguments.
      • addLine

        public void addLine(double prob,
                            int result,
                            int... args)
        Add a new line.
        Parameters:
        prob - The probability.
        result - The resulting probability.
        args - The arguments.
      • validate

        public void validate()
        Validate the truth table.
      • generateRandom

        public int generateRandom(int... args)
        Generate a random sampling based on this truth table.
        Parameters:
        args - The arguemtns.
        Returns:
        The result.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getLines

        public java.util.List<TableLine> getLines()
        Returns:
        The lines of this truth table.
      • findLine

        public TableLine findLine(int result,
                                  int[] args)
        Find the specified truth table line.
        Parameters:
        result - The result sought.
        args - The arguments.
        Returns:
        The line that matches.
      • getMaxLines

        public int getMaxLines()
        Returns:
        The maximum number of lines this truth table would have.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.