Class Normalize

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, SpreadSheetFilter, TrainableSpreadSheetFilter, Serializable

    public class Normalize
    extends AbstractTrainableSpreadSheetFilter
    Normalizes numeric columns to the specified lower and upper bound.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -range <adams.data.spreadsheet.SpreadSheetColumnRange> (property: range)
        The column range to normalize.
        default: first-last
        example: A range is a comma-separated list of single 1-based indices or sub-ranges of indices ('start-end'); 'inv(...)' inverts the range '...'; column names (case-sensitive) as well as the following placeholders can be used: first, second, third, last_2, last_1, last; numeric indices can be enforced by preceding them with '#' (eg '#12'); column names can be surrounded by double quotes.
     
    -lower <double> (property: lower)
        The lower bound to use.
        default: 0.0
     
    -upper <double> (property: upper)
        The upper bound to use.
        default: 1.0
     
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Lower

        protected double m_Lower
        the lower bound.
      • m_Upper

        protected double m_Upper
        the upper bound.
      • m_Indices

        protected int[] m_Indices
        the indices of the columns to process.
      • m_Numeric

        protected boolean[] m_Numeric
        whether a column is numeric.
      • m_Min

        protected double[] m_Min
        the minimum value for a column.
      • m_Max

        protected double[] m_Max
        the maximum value for a column.
    • Constructor Detail

      • Normalize

        public Normalize()
    • Method Detail

      • setRange

        public void setRange​(SpreadSheetColumnRange value)
        Sets the range of columns to process.
        Parameters:
        value - the range
      • getRange

        public SpreadSheetColumnRange getRange()
        Returns the range of columns to process.
        Returns:
        the range
      • rangeTipText

        public String rangeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setLower

        public void setLower​(double value)
        Sets the lower bound to use.
        Parameters:
        value - the bound
      • getLower

        public double getLower()
        Returns the lower bound in use.
        Returns:
        the bound
      • lowerTipText

        public String lowerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUpper

        public void setUpper​(double value)
        Sets the upper bound to use.
        Parameters:
        value - the bound
      • getUpper

        public double getUpper()
        Returns the upper bound in use.
        Returns:
        the bound
      • upperTipText

        public String upperTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.