Skip to main content

pygini

Very simple module that computes the Gini index of a numpy array.

Installation

pip install pygini

Usage

import numpy as np
from pygini import gini

RG = np.random.default_rng(0)
A = RG.random(100)
GI = gini(A)

# Also compute along axis
A = RG.random((100, 80, 80))
GI = gini(A, axis=0)

# GI.shape = (80, 80)

See examples directory.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygini-1.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygini-1.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pygini-1.0.1.tar.gz.

File metadata

  • Download URL: pygini-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for pygini-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e484a59158f1343fd550c75573f278aa17b55ee05837ed4a9b77565470636e4b
MD5 f81eea7b02652e842e4a55ee3c73046a
BLAKE2b-256 ad857d4c33af7f26a43621cb156e3f06bca05eb82cb2c9587b05a0a290ce8941

See more details on using hashes here.

File details

Details for the file pygini-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pygini-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for pygini-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b130594430bb9047065b66531ab70eb5f9d944af13db985215bc804f677bd53e
MD5 18f223c1861e1b79a186c115baae9432
BLAKE2b-256 1c5f079f36cbfe4410f0d53232e192d01c78489dff52a1589a44c16c02e2a46e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page