Class SpreadSheetBinarize

  • All Implemented Interfaces:
    AdditionalInformationHandler, CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<AbstractConversion>, SizeOfHandler, Stoppable, Conversion, Serializable

    public class SpreadSheetBinarize
    extends AbstractSpreadSheetConversion
    Binarizes the non-numeric columns in the selected column range by creating a new column for each of the labels.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -columns <adams.data.spreadsheet.SpreadSheetColumnRange> (property: columns)
        The range of columns to binarize.
        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
     
    -binarize-type <NUMERIC|BOOLEAN|LABELS> (property: binarizeType)
        The type of binarization to perform.
        default: NUMERIC
     
    -label-positive <java.lang.String> (property: labelPositive)
        The positive label (ie 1s) in case of LABELS.
        default: yes
     
    -label-negative <java.lang.String> (property: labelNegative)
        The negative label (ie 0s) in case of LABELS.
        default: no
     
    Version:
    $Revision: 8614 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • SpreadSheetBinarize

        public SpreadSheetBinarize()
    • Method Detail

      • setColumns

        public void setColumns​(SpreadSheetColumnRange value)
        Sets the range of columns to merge.
        Parameters:
        value - the range
      • getColumns

        public SpreadSheetColumnRange getColumns()
        Returns the range of columns to merge.
        Returns:
        true range
      • columnsTipText

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

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

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

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