Class ARMATimeSeries

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.commons.math3.analysis.UnivariateFunction, org.apache.commons.math3.distribution.RealDistribution

    public class ARMATimeSeries
    extends StatefulTimeseriesDistribution
    See Also:
    Serialized Form
    • Field Detail

      • values

        protected java.util.LinkedList<java.lang.Double> values
      • errors

        protected java.util.LinkedList<java.lang.Double> errors
      • lastTime

        protected long lastTime
      • arWeights

        protected double[] arWeights
      • maWeights

        protected double[] maWeights
    • Constructor Detail

      • ARMATimeSeries

        public ARMATimeSeries​(double noiseStandardDeviation)
      • ARMATimeSeries

        public ARMATimeSeries​(int n,
                              int m,
                              double noise)
    • Method Detail

      • getCurrentSeriesValue

        protected double getCurrentSeriesValue​(long currentTime)
        Description copied from class: StatefulTimeseriesDistribution
        Sub-classes need to implement this. It returns the value of the time series model given the current time
        Specified by:
        getCurrentSeriesValue in class StatefulTimeseriesDistribution
        Parameters:
        currentTime - the current time as a POSIX timestamp (millis since 01-01-1970)
        Returns:
        double the value of the underlying series at the given point in time.
      • getArWeights

        public double[] getArWeights()
      • setArWeights

        public void setArWeights​(double[] arWeights)
      • getMaWeights

        public double[] getMaWeights()
      • setMaWeights

        public void setMaWeights​(double[] maWeights)
      • addValue

        public void addValue​(double value,
                             double error)
      • setLastTime

        public void setLastTime​(long lastTime)
      • getParameters

        public double[] getParameters()