averbraeck / djutils

Delft Java Utilities for statistics, stochastics, data analysis and serialization
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

make reportHeader() and reportFooter() methods static #5

Closed averbraeck closed 1 year ago

averbraeck commented 1 year ago

The Tally, Counter, WeightedTally and TimestampWeightedTally classes have reporting methods to a String. When iterating over multiple statistics to make a table, the reportHeader( and reportFooter() methods are not accessible because there is no instance yet on which to call the header or footer method. This problem is solved by making these methods static.

averbraeck commented 1 year ago

Changes made in the code and committed.