Documentation of 'org.encog.ml.bayesian.BayesianChoice' Java class
BayesianChoice
org.encog.ml.bayesian

Class BayesianChoice

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BayesianChoice>


    public class BayesianChoice
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<BayesianChoice>
    A choice in a Bayesian network. Choices can be either discrete or continuous. For continuous choices the number must be made discrete by mapping it to discrete ranges.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      BayesianChoice(java.lang.String label, double min, double max)
      Construct a continuous choice that covers the specified range.
      BayesianChoice(java.lang.String label, int index)
      Construct a discrete choice for the specified index.
    • Constructor Detail

      • BayesianChoice

        public BayesianChoice(java.lang.String label,
                              double min,
                              double max)
        Construct a continuous choice that covers the specified range.
        Parameters:
        label - The label for this choice.
        min - The minimum value for this range.
        max - The maximum value for this range.
      • BayesianChoice

        public BayesianChoice(java.lang.String label,
                              int index)
        Construct a discrete choice for the specified index.
        Parameters:
        label - The label for this choice.
        index - The index for this choice.
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Returns:
        Get the label.
      • getMin

        public double getMin()
        Returns:
        Get the min.
      • getMax

        public double getMax()
        Returns:
        Get the max.
      • isIndex

        public boolean isIndex()
        Returns:
        True, if this choice has an index, as opposed to min/max. If the value has an idex, then it is discrete.
      • toString

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

        public java.lang.String toFullString()
        Returns:
        A string representation of this choice.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.