All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jDisco.Tab | +----jDisco.Histogram
A histogram object records a rough profile of a sequence of real values, by asking in advance for their (expected) lower bound, lower, and upper bound, upper; and also for the number of recording cells, ncells. The range [lower;upper[ is divided into ncell cells, each of the same width.
Example of use:
class HouseOnFire extends Process { static Histogram perDamage = new Tally("Perc.damage", 0, 100, 20); public void actions() { Variable damage = new Variable(size).start(); do burning; h.update(damage.state * 100 / material); } }A typical report:
title / (re)set/ obs/ average/est.st.dv/ minimum/ maximum/ conf./ Perc. damage 0.000 138 13.817 13.257 0.062 73.831 2.240 cell/lower lim/ n/ freq/ cum % |---------------------------------------- 0 -infinity 0 0.00 0.00 | 1 0.000 16 0.12 11.59 |***************** 2 5.000 38 0.28 39.13 |**************************************** 3 10.000 31 0.22 61.59 |********************************* 4 15.000 17 0.12 73.91 |****************** 5 20.000 13 0.09 83.33 |************** 6 25.000 4 0.03 86.23 |**** 7 30.000 4 0.03 89.13 |**** 8 35.000 6 0.04 93.48 |****** 9 40.000 2 0.01 94.93 |** 10 45.000 4 0.03 97.83 |**** 11 50.000 1 0.01 98.55 |* 12 55.000 0 0.00 98.55 | 13 60.000 0 0.00 98.55 | 14 65.000 0 0.00 98.55 | 15 70.000 0 0.00 98.55 | 16 75.000 2 0.01 100.00 |** 17 80.000 0 0.00 100.00 | 18 85.000 0 0.00 100.00 | 19 90.000 0 0.00 100.00 | **rest of table empty** |----------------------------------------
public Histogram(java.lang.String title, double lower, double upper, int nCells)
public void reset()
public void update(double v)
public void report()
public double min()
public double max()
public double mean()
public double variance()
public double stdDev()
public double confidence(double level)
public double confidence()
All Packages Class Hierarchy This Package Previous Next Index