Abstracted, continuous, and normalised of version of the Hirsch index (h-index) from academic writing for use as a statistical measure of even distribution
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hirsch-0.1.tar.gz
.
File metadata
- Download URL: hirsch-0.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e82d9c56580a846a4d7d8e16d21b77a63537dc7c34e76c0d83054d93bd967578 |
|
MD5 | 4928541aee75384fdcba3de28924fb15 |
|
BLAKE2b-256 | c7c2d4897bd5aa06a2170d085be3aa25ad7ff5c299b61c0ea3af4e1fc248d382 |
File details
Details for the file hirsch-0.1-py3-none-any.whl
.
File metadata
- Download URL: hirsch-0.1-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4890897ffc7178ba5aab66dcf74ee77ab11c786b5ec4dc45081d0faa23a235b8 |
|
MD5 | 953c53cc4ae2d3c8a96c1de0cc72470a |
|
BLAKE2b-256 | d1137af74c270c485607fcf3d2049544cf6d1e79966f641e6bf375b1fdbc8668 |