There are three deliverables for this exercise. These classes will include the complete Javadoc comments or Python dostring.
The IntegerStatistics class.
A unit test of the IntegerStatistics
class that some simple LinkedList,
ArrayList, and
Vector test data. The results can be
checked with a spreadsheet.
An update to the overall Simulator
that gets uses an IntegerStatistics object
to compute the mean and standard deviation of the peak stake. It
also computest the mean and standard deviation of the length of
each session of play.
Here is some standard deviation unit test data, some intermediate results and the correct answers given to 6 significant digits. Your answers should be the same to the precision shown.
| Sample Value |
|---|
| 9 |
| 8 |
| 5 |
| 9 |
| 9 |
| 4 |
| 5 |
| 8 |
| 10 |
| 7 |
| 8 |
| 8 |
| sum | 90 |
| mean | 7.5 |
| sum d*d | 608.668 |
| stdev | 1.88293 |