Class DownSize<T extends DataContainer>

  • All Implemented Interfaces:
    CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, ShallowCopySupporter<Filter>, SizeOfHandler, Filter<T>, Serializable, Comparable

    public class DownSize<T extends DataContainer>
    extends AbstractFilter<T>
    A filter that picks a specified number of evenly spaced data points from the data. Does not introduce extra data points if there are too few points.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -no-id-update <boolean> (property: dontUpdateID)
        If enabled, suppresses updating the ID of data containers.
        default: false
    -num-points <int> (property: numPoints)
        The number of points to pick from the input data.
        default: 100
        minimum: 1
    $Revision: 1286 $
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_NumPoints

        protected int m_NumPoints
        the number of points to retain.
    • Constructor Detail

      • DownSize

        public DownSize()
    • Method Detail

      • getDefaultNumPoints

        protected int getDefaultNumPoints()
        Returns the default number of points to retain.
        the default
      • setNumPoints

        public void setNumPoints​(int value)
        Sets the number of points to retain.
        value - the number
      • getNumPoints

        public int getNumPoints()
        Returns the number of points to retain.
        the number
      • numPointsTipText

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

        protected T processData​(T data)
        Performs the actual filtering.
        Specified by:
        processData in class AbstractFilter<T extends DataContainer>
        data - the data to filter
        the filtered data