Class SimpleTimeSeries

    • Constructor Detail

      • SimpleTimeSeries

        public SimpleTimeSeries​(double[] values)
        Constructs an instance of SimpleTimeSeries.
        Parameters:
        values - an array of values
    • Method Detail

      • get

        public double get​(int t)
        Description copied from interface: IntTimeTimeSeries
        Get the value at time t.
        Specified by:
        get in interface IntTimeTimeSeries
        Parameters:
        t - a time index, counting from 1
        Returns:
        the value at time t
      • drop

        public SimpleTimeSeries drop​(int nItems)
        Constructs an instance of SimpleTimeSeries by dropping the leading nItems entries.
        Parameters:
        nItems - the number of leading entries to be dropped
        Returns:
        a SimpleTimeSeries
      • diff

        public SimpleTimeSeries diff​(int d)
        Constructs an instance of SimpleTimeSeries by taking the first difference d times.
        Parameters:
        d - the number of differences
        Returns:
        diff(x, lag = 1, differences = d) as in DoubleUtils
      • lag

        public SimpleTimeSeries lag​(int nLags,
                                    int length)
        Constructs an instance of SimpleTimeSeries by lagging the time series. This operation makes sense only for equi-distant data points.
        Parameters:
        nLags - the number of lags
        length - the length of the lagged time series
        Returns:
        a lagged time series
      • lag

        public SimpleTimeSeries lag​(int nLags)
        Constructs an instance of SimpleTimeSeries by lagging the time series. This operation makes sense only for equi-distant data points.
        Parameters:
        nLags - the number of lags
        Returns:
        a lagged time series
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object