Class TimeseriesRound

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

    public class TimeseriesRound
    extends AbstractFilter<Timeseries>
    Rounds the values of the timeseries points.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
        min-user-mode: Expert
     
    -no-id-update <boolean> (property: dontUpdateID)
        If enabled, suppresses updating the ID of adams.data.id.IDHandler data containers.
        default: false
     
    -type <ROUND|CEILING|FLOOR|RINT> (property: type)
        The type of rounding to perform; ROUND: the closest integer to the argument,
         with ties rounding to positive infinity; CEILING: the smallest (closest
        to negative infinity) double value that is greater than or equal to the
        argument and is equal to a mathematical integer; FLOOR: the largest (closest
        to positive infinity) double value that is less than or equal to the argument
        and is equal to a mathematical integer; RINT: the double value that is closest
        in value to the argument and is equal to a mathematical integer
        default: ROUND
     
    -num-decimals <int> (property: numDecimals)
        The number of decimals after the decimal point to use.
        default: 0
        minimum: 0
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_NumDecimals

        protected int m_NumDecimals
        the number of decimals.
    • Constructor Detail

      • TimeseriesRound

        public TimeseriesRound()
    • Method Detail

      • setType

        public void setType​(RoundingType value)
        Sets the type of rounding to perform.
        Parameters:
        value - the type
      • getType

        public RoundingType getType()
        Returns the type of rounding to perform.
        Returns:
        the type
      • typeTipText

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

        public void setNumDecimals​(int value)
        Sets the number of decimals after the decimal point to use.
        Parameters:
        value - the number of decimals
      • getNumDecimals

        public int getNumDecimals()
        Returns the number of decimals after the decimal point to use.
        Returns:
        the number of decimals
      • numDecimalsTipText

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