Class FixedLengthSegments

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

    public class FixedLengthSegments
    extends AbstractTimeseriesSplitter
    Splits the timeseries into segements of a fixed length, i.e., number of data points.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -num-points <int> (property: numPoints)
        The number of data points for a segment.
        default: 100
        minimum: 1
        maximum: 0
     
    -discard-partial <boolean> (property: discardPartial)
        If enabled, partial segments get discarded, ie the last one if not sufficient 
        data points.
        default: false
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_NumPoints

        protected int m_NumPoints
        the number of data points.
      • m_DiscardPartial

        protected boolean m_DiscardPartial
        whether to discard partial segments (ie the last one).
    • Constructor Detail

      • FixedLengthSegments

        public FixedLengthSegments()
    • Method Detail

      • setNumPoints

        public void setNumPoints​(int value)
        Sets the number of points for a segment.
        Parameters:
        value - the number of points
      • getNumPoints

        public int getNumPoints()
        Returns the number of points for a segment.
        Returns:
        the number of points
      • numPointsTipText

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

        public void setDiscardPartial​(boolean value)
        Sets whether to discard partial segments.
        Parameters:
        value - ture if to discard
      • getDiscardPartial

        public boolean getDiscardPartial()
        Returns whether to discard partial segments.
        Returns:
        true if to discard
      • discardPartialTipText

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