Package jline.api.sim

Class QuestOptions

java.lang.Object
jline.api.sim.QuestOptions

public class QuestOptions extends Object
Procedure constants of Sim_fquest and Sim_firquest.

The defaults are the ones the articles report after their own experimentation: b0 = 50 gives the warmup randomness test enough power, 32 batches suffice to estimate the variance parameter while fewer than 10 make the interval unreliable, and the decaying warmup significance keeps the batch size from growing so far that truncation eats a short sample. With these values the fourth warmup iteration runs at beta*exp(-0.2*3^2.3) = 0.025.

Sim_firquest substitutes b0 = 25 and an s chosen from the replication count; see Sim_firquest.defaultBatchCounts(int).

Port of MATLAB sim_quest_options.m.

Since:
LINE 3.1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Initial batch count for the warmup stage.
    double
    Significance level of the stage tests.
    double
    Decay coefficient of the warmup significance.
    boolean
    Whether to deliver a heuristic interval when a stage test fails.
    int
    Initial batch size for the warmup stage.
    int[]
    Descending batch counts for the test stages.
    double
    Decay exponent of the warmup significance.
    double
    Constant STS weight function.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Rejects inadmissible option values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • b0

      public int b0
      Initial batch count for the warmup stage.
    • m0

      public int m0
      Initial batch size for the warmup stage.
    • s

      public int[] s
      Descending batch counts for the test stages.
    • beta

      public double beta
      Significance level of the stage tests.
    • eta

      public double eta
      Decay coefficient of the warmup significance.
    • theta

      public double theta
      Decay exponent of the warmup significance.
    • weight

      public double weight
      Constant STS weight function.
    • force

      public boolean force
      Whether to deliver a heuristic interval when a stage test fails.
  • Constructor Details

    • QuestOptions

      public QuestOptions()
  • Method Details

    • validate

      public void validate()
      Rejects inadmissible option values.
      Throws:
      IllegalArgumentException - when a field is out of range