Documentation of 'org.encog.util.normalize.output.nominal.OutputEquilateral' Java class
OutputEquilateral
org.encog.util.normalize.output.nominal

Class OutputEquilateral

  • All Implemented Interfaces:
    java.io.Serializable, OutputField


    public class OutputEquilateral
    extends BasicOutputField
    Allows nominal items to be encoded using the equilateral method. This maps the nominal items into an array of input or output values minus 1. This can sometimes provide a more accurate representation than the "one of" method. Based on: Guiver and Klimasauskas (1991).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      OutputEquilateral()
      Prodvide a default constructor for reflection.
      OutputEquilateral(double low, double high)
      Create an equilateral output field with the specified high and low output values.
    • Constructor Detail

      • OutputEquilateral

        public OutputEquilateral()
        Prodvide a default constructor for reflection.
      • OutputEquilateral

        public OutputEquilateral(double low,
                                 double high)
        Create an equilateral output field with the specified high and low output values. These will often be 0 to 1 or -1 to 1.
        Parameters:
        high - The high output value.
        low - The low output value.
    • Method Detail

      • addItem

        public void addItem(InputField inputField,
                            double value)
        Add a nominal value based on a single value. This creates a 0.1 range around this value.
        Parameters:
        inputField - The input field this is based on.
        value - The value.
      • addItem

        public void addItem(InputField inputField,
                            double low,
                            double high)
        Add a nominal item based on a range.
        Parameters:
        inputField - The input field to use.
        low - The low value of the range.
        high - The high value of the range.
      • calculate

        public double calculate(int subfield)
        Calculate the value for the specified subfield.
        Parameters:
        subfield - The subfield to calculate for.
        Returns:
        The calculated value.
      • getEquilateral

        public Equilateral getEquilateral()
        Returns:
        The equalateral table being used.
      • getHigh

        public double getHigh()
        Returns:
        The high value of the range.
      • getLow

        public double getLow()
        Returns:
        The low value of the range.
      • getSubfieldCount

        public int getSubfieldCount()
        This is the total number of nominal items minus 1.
        Returns:
        The number of subfields.
      • rowInit

        public void rowInit()
        Determine which item's index is the value.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.