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

Class TableLine

  • All Implemented Interfaces:
    java.io.Serializable


    public class TableLine
    extends java.lang.Object
    implements java.io.Serializable
    A line from a Bayesian truth table.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      TableLine(double prob, int result, int[] args)
      Construct a truth table line.
    • Constructor Detail

      • TableLine

        public TableLine(double prob,
                         int result,
                         int[] args)
        Construct a truth table line.
        Parameters:
        prob - The probability.
        result - The result.
        args - The arguments.
    • Method Detail

      • getProbability

        public double getProbability()
        Returns:
        the probability
      • getArguments

        public int[] getArguments()
        Returns:
        the arguments
      • getResult

        public int getResult()
        Returns:
        the result
      • toString

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

        public boolean compareArgs(int[] args)
        Compare this truth line's arguments to others.
        Parameters:
        args - The other arguments to compare to.
        Returns:
        True if the same.
      • setProbability

        public void setProbability(double probability)
        Set the probability of this line.
        Parameters:
        probability - The probability of this line.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.