kuvshinovdr / srcstats

A small console program to gather and report C++ source files statistics.
MIT License
1 stars 1 forks source link

Decompose Statistics into two #6

Closed kuvshinovdr closed 3 months ago

kuvshinovdr commented 3 months ago

Both file statistics and line statistics provide the same values like totals and averages. Let it be a simpler statistics accumulator class that calculates min, max, total (sum), arithmetic average (and may be the mean value). Then use two objects of this class for files (line count) and lines (character count).

kuvshinovdr commented 3 months ago

Done in version 4. We don't have the mean values though as it will demand sorting all lines and files.