Module stats

Source
Expand description

Statistics on the catalog.

Everything is computed on demand from the in-memory catalog: no aggregate value is stored, so none can drift out of sync.

Structs§

Bucket
Named breakdown entry: (label, count, size in bytes).
Stats
Snapshot of what the catalog contains, recomputed on each call.

Enums§

QualityTier
Quality class, as a listener perceives it.

Functions§

compute
Runs through the whole catalog and produces the counts, breakdowns and completeness ratios.
quality_tier
Ranks a file from what its audio properties actually establish.
top_artists
The most present artists, by number of distinct tracks they are audible on.
top_genres
The most represented genres, by number of tracks.
top_labels
The most present labels, by number of releases.
top_writers
The most credited writers and producers, by number of distinct tracks.