Class AR1NormalRV

    • Constructor Detail

      • AR1NormalRV

        public AR1NormalRV()
        Creates an autoregressive order 1 normal, N(0,1) zero correlation process
      • AR1NormalRV

        public AR1NormalRV​(double correlation)
        Creates an autoregressive order 1 normal, N(0,1) process
        Parameters:
        correlation -
      • AR1NormalRV

        public AR1NormalRV​(double mean,
                           double variance,
                           double correlation)
        Creates an autoregressive order 1 normal process
        Parameters:
        mean -
        variance -
        correlation -
      • AR1NormalRV

        public AR1NormalRV​(double mean,
                           double variance,
                           double correlation,
                           RNStreamIfc rng)
        Creates an autoregressive order 1 normal process
        Parameters:
        mean -
        variance -
        correlation -
        rng -
    • Method Detail

      • newInstance

        public RVariableIfc newInstance​(RNStreamIfc rng)
        Parameters:
        rng - the RNStreamIfc to use
        Returns:
        a new instance with same parameter values
      • getMean

        public final double getMean()
        Returns:
        The mean of the process
      • getVariance

        public final double getVariance()
        Returns:
        The variance of the process
      • getErrorVariance

        public final double getErrorVariance()
        Returns:
        The variance of the underlying errors
      • getLag1Correlation

        public final double getLag1Correlation()
        Returns:
        Gets the lag 1 autocorrelation
      • generate

        protected double generate()
        Specified by:
        generate in class AbstractRVariable
        Returns:
        the randomly generated variate