org.encog.ml.bayesian.table
Class TableLine
- java.lang.Object
-
- org.encog.ml.bayesian.table.TableLine
-
- All Implemented Interfaces:
- java.io.Serializable
public class TableLine extends java.lang.Object implements java.io.SerializableA 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancompareArgs(int[] args)Compare this truth line's arguments to others.int[]getArguments()doublegetProbability()intgetResult()voidsetProbability(double probability)Set the probability of this line.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.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