File size distribution: Difference between revisions

Content added Content deleted
Line 484: Line 484:
filteredGroups n = filter ((>0) . snd ) . frequencyGroups n . sort . fileSizes</lang>
filteredGroups n = filter ((>0) . snd ) . frequencyGroups n . sort . fileSizes</lang>
{{out}}
{{out}}
<pre>$ filedist . 10
<pre>filedist . 10
Total files: 431814
Total files: 431815
Total folders: 65548
Total folders: 65549
Total size: 6GB
Total size: 6GB


Distribution:
Distribution:
0B <-> 39MB = 431798
0B <-> 39MB = 431799
39MB <-> 78MB = 6
39MB <-> 78MB = 6
78MB <-> 117MB = 3
78MB <-> 118MB = 3
117MB <-> 156MB = 5
118MB <-> 157MB = 5
156MB <-> 195MB = 1
157MB <-> 196MB = 1
352MB <-> 391MB = 1</pre>
353MB <-> 392MB = 1</pre>


=={{header|Julia}}==
=={{header|Julia}}==