Class HalfWidthSequentialSampler


  • public class HalfWidthSequentialSampler
    extends java.lang.Object
    Continually gets the value of the supplied GetValueIfc in the run() until the supplied sampling half-width requirement is met or the default maximum number of iterations is reached, whichever comes first.
    • Field Detail

      • myDefaultDesiredHW

        protected double myDefaultDesiredHW
      • myDefaultMaxIterations

        protected long myDefaultMaxIterations
      • myStatistic

        protected Statistic myStatistic
    • Constructor Detail

      • HalfWidthSequentialSampler

        public HalfWidthSequentialSampler()
      • HalfWidthSequentialSampler

        public HalfWidthSequentialSampler​(java.lang.String name)
    • Method Detail

      • getDefaultDesiredHalfWidth

        public final double getDefaultDesiredHalfWidth()
      • getDefaultMaxIterations

        public final long getDefaultMaxIterations()
      • setConfidenceLevel

        public void setConfidenceLevel​(double alpha)
      • setDefaultDesiredHalfWidth

        public final void setDefaultDesiredHalfWidth​(double hw)
      • setDefaultMaxIterations

        public final void setDefaultMaxIterations​(long maxIter)
      • run

        public final boolean run​(GetValueIfc v,
                                 double hw)
      • run

        public boolean run​(GetValueIfc v,
                           double dhw,
                           long maxIter)