Exemplo n.º 1
0
  /**
   * Return distribution of mean for results.
   *
   * @return distribution of mean
   */
  public DataDistribution distribution() {
    DataDistribution distro =
        new DataDistribution(binDistro.binNumber, binDistro.binMin, binDistro.binSize);
    for (int i = 0; i < results.size(); i++) distro.writeBin(i, ((Result) results.get(i)).mean);

    return distro;
  }
Exemplo n.º 2
0
 /**
  * Input values.
  *
  * @param binValue value to decide bin with
  * @param value value to bin
  */
 public void input(double binValue, double value) {
   if (debug) System.out.println("Adding " + value + " to bin with value " + binValue);
   int binIndex = binDistro.binIndex(binValue);
   ((Result) results.get(binIndex)).input(value);
 }