Documentation of 'org.encog.util.normalize.output.OutputFieldRangeMapped' Java class
OutputFieldRangeMapped
org.encog.util.normalize.output

Class OutputFieldRangeMapped

    • Constructor Detail

      • OutputFieldRangeMapped

        public OutputFieldRangeMapped()
        Default constructor, used mainly for reflection.
      • OutputFieldRangeMapped

        public OutputFieldRangeMapped(InputField field,
                                      double low,
                                      double high)
        Construct a range mapped output field.
        Parameters:
        field - The input field to base this on.
        low - The low value.
        high - The high value.
      • OutputFieldRangeMapped

        public OutputFieldRangeMapped(InputField f)
        Create a range field with -1 and 1 as low/high.
        Parameters:
        f - The input field to use.
    • Method Detail

      • calculate

        public static double calculate(double value,
                                       double min,
                                       double max,
                                       double hi,
                                       double lo)
        Calculate a ranged mapped value.
        Parameters:
        value - The to map.
        min - The minimum that the value param can be.
        max - The maximum that the value param can be.
        hi - The high value to map into.
        lo - The low value to map into.
        Returns:
        The mapped value.
      • calculate

        public double calculate(int subfield)
        Calculate this output field.
        Specified by:
        calculate in interface OutputField
        Parameters:
        subfield - Not used.
        Returns:
        The calculated value.
      • getField

        public InputField getField()
        Returns:
        The field that this output is based on.
      • getHigh

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

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

        public int getSubfieldCount()
        Specified by:
        getSubfieldCount in interface OutputField
        Returns:
        This field only produces one value, so this will return 1.
      • rowInit

        public void rowInit()
        Not needed for this sort of output field.
        Specified by:
        rowInit in interface OutputField
      • convertBack

        public double convertBack(double data)
        Convert a number back after its been normalized.
        Parameters:
        data - The number to convert back.
        Returns:
        The result.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.