calculate_statistics
Generate statistical insights from publication data, including total count, time range, top authors, and top venues, using an array of publication objects with titles, authors, venues, and years.
Instructions
Calculate statistics from a list of publication results. Arguments:
- results (array, required): An array of publication objects, each with at least 'title', 'authors', 'venue', and 'year'. Returns a dictionary with:
- total_publications: Total count.
- time_range: Dictionary with 'min' and 'max' publication years.
- top_authors: List of tuples (author, count) sorted by count.
- top_venues: List of tuples (venue, count) sorted by count (empty venue is treated as '(empty)').
Input Schema
Name | Required | Description | Default |
---|---|---|---|
results | Yes |