Hirsch 🦌
Python implementation of the familiar discrete Hirsch index (h-index) from academic writing, with an abstracted continuous version for use as a statistical measure of even distribution
Installation
pip install hirsch
Usage
Discrete
Get the h-index of some discrete data, e.g. the number of citations an author has received on their papers:
from hirsch import hirsch
citations = [0, 1, 1, 2, 1, 6, 5, 13, 14, 10, 59, 145, 68]
h = hirsch(citations)
Continuous
Calculate a continuous h-index for some normalised and binned data, e.g. fractional populations:
from hirsch import hirsch
fractions = [0.1,0.5,0.6,0.3,0.2,0.5,0.4]
h = hirsch(fractions, continuous=True)
Calculate a continuous h-index for a set of samples from known populations (continuous=True assumed):
from hirsch import hirsch
samples = [1,2,3,4,10,20,10]
populations = [10,10,10,10,20,30,40]
h = hirsch(samples, populations)
Metadata
Release files for hirsch 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hirsch-0.1.tar.gz | 15.9 kB | Without provenance | Details for hirsch-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hirsch-0.1-py3-none-any.whl | Python 3 | none | any | Details for hirsch-0.1-py3-none-any.whl |
Total release size: 31.0 kB
Release files / hirsch-0.1.tar.gz
| Download URL | hirsch-0.1.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e82d9c56580a846a4d7d8e16d21b77a63537dc7c34e76c0d83054d93bd967578
|
|
BLAKE2b-256 checksum How to use checksums |
c7c2d4897bd5aa06a2170d085be3aa25ad7ff5c299b61c0ea3af4e1fc248d382
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / hirsch-0.1-py3-none-any.whl
| Download URL | hirsch-0.1-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4890897ffc7178ba5aab66dcf74ee77ab11c786b5ec4dc45081d0faa23a235b8
|
|
BLAKE2b-256 checksum How to use checksums |
d1137af74c270c485607fcf3d2049544cf6d1e79966f641e6bf375b1fdbc8668
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for hirsch 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.