Class QADistribution

java.lang.Object
qa.generator.distributions.QADistribution
Direct Known Subclasses:
QACorrelatedSequence, QAFixed, QAGamma, QAGaussian, QARandomSpread

public abstract class QADistribution extends Object
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    QADistribution(boolean sort, boolean integrate)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double[]
    Get the range of the distrubution.
    abstract double[]
    getRange(double nSigma)
    Get the range of the distrubution.
    final double[]
    getValues(int nValues)
    Create a set of random values according to the underlying distribution.
    boolean
     
    boolean
     
    void
    setIntegrate(boolean integrate)
     
    void
    setSort(boolean sort)
     

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • QADistribution Link icon

      public QADistribution(boolean sort, boolean integrate)
      Parameters:
      sort - sort the data in ascending order.
      integrate - data will be integrated (e.g. to generate click times rather than inter-click intervals)
  • Method Details Link icon

    • getValues Link icon

      public final double[] getValues(int nValues)
      Create a set of random values according to the underlying distribution.

      Concrete classes should override createValues rather than this getValues function, leaving getValues to sort and integrate as required

      Parameters:
      nValues - number of values to generate.
      Returns:
      array of values.
    • getRange Link icon

      public abstract double[] getRange(double nSigma)
      Get the range of the distrubution. How this is defined is a little nebulous, for Guassian like distributions its the mean +/- n standard deviations.
      Parameters:
      nSigma - number of Standard Deviations (or equivalents).
      Returns:
      The range of values.
    • getRange Link icon

      public double[] getRange()
      Get the range of the distrubution. How this is defined is a little nebulous, for Guassian like distributions its the mean +/- n standard deviations.
      Parameters:
      nSDs - number of Standard Deviations (or equivalents).
      Returns:
      The range of values.
    • isSort Link icon

      public boolean isSort()
      Returns:
      the sort
    • setSort Link icon

      public void setSort(boolean sort)
      Parameters:
      sort - the sort to set
    • isIntegrate Link icon

      public boolean isIntegrate()
      Returns:
      the integrate
    • setIntegrate Link icon

      public void setIntegrate(boolean integrate)
      Parameters:
      integrate - the integrate to set