Class ARTACorrelationFinder

    • Field Detail

      • myDesiredCorrelation

        protected double myDesiredCorrelation
      • myMatchingCorrelation

        protected double myMatchingCorrelation
      • myHWBound

        protected double myHWBound
      • myDelta

        protected double myDelta
      • myInitialPoints

        protected int myInitialPoints
      • myInterval

        protected Interval myInterval
      • myLRho

        protected double myLRho
      • myURho

        protected double myURho
    • Constructor Detail

      • ARTACorrelationFinder

        public ARTACorrelationFinder​(RVariableIfc distribution)
        Parameters:
        distribution - the distribution
      • ARTACorrelationFinder

        public ARTACorrelationFinder​(RVariableIfc distribution,
                                     double lag1)
        Parameters:
        distribution - the distribution
        lag1 - the desired lag
      • ARTACorrelationFinder

        public ARTACorrelationFinder​(RVariableIfc distribution,
                                     double lag1,
                                     int sampleSize)
        Parameters:
        distribution - the distribution
        lag1 - the desired lag
        sampleSize - the sample size
      • ARTACorrelationFinder

        public ARTACorrelationFinder​(RVariableIfc distribution,
                                     double lag1,
                                     int sampleSize,
                                     int numReps)
        Parameters:
        distribution - the distribution
        lag1 - the desired lag
        sampleSize - the sample size
        numReps - the number of replications
      • ARTACorrelationFinder

        public ARTACorrelationFinder​(RVariableIfc distribution,
                                     double lag1,
                                     int sampleSize,
                                     int numReps,
                                     boolean antitheticFlag)
        Parameters:
        distribution - the distribution
        lag1 - the desired lag
        sampleSize - the sample size
        numReps - the number of replications
        antitheticFlag - use antithetics flag
    • Method Detail

      • checkMatchingCorrelation

        public boolean checkMatchingCorrelation​(double desiredCorrelation)
      • getCorrelationInterval

        public Interval getCorrelationInterval()
      • recommendInitialPoint

        public double recommendInitialPoint​(int n)
      • setNumberOfPointsInInitialSearch

        public void setNumberOfPointsInInitialSearch​(int n)
      • findMatchingCorrelation

        public double findMatchingCorrelation()
      • getDesiredCorrelation

        public double getDesiredCorrelation()
      • getMatchingCorrelation

        public double getMatchingCorrelation()
      • toString

        public java.lang.String toString()
        Returns a String representation
        Overrides:
        toString in class ARTACorrelationEvaluator
        Returns:
        A String with basic results
      • turnOnTimer

        public void turnOnTimer​(long milliseconds)
      • getDesiredPrecision

        public double getDesiredPrecision()
      • setDesiredPrecision

        public void setDesiredPrecision​(double prec)
      • getStoppingCriteria

        public double getStoppingCriteria()
      • main

        public static void main​(java.lang.String[] args)
      • test1

        public static void test1()
      • test2

        public static void test2()