Skip to main content

A comprehensive Python library for statistical calculations including mean, median, mode, variance, and standard deviation

Project description

media-calc

A comprehensive Python library for statistical calculations.

Features

  • Calculate arithmetic mean (media)
  • Find median value (median)
  • Get most frequent value (mode)
  • Calculate variance (variance)
  • Compute standard deviation (standard_deviation)

Installation

pip install media-calc

Quick Start

from media import media, median, mode, variance, standard_deviation

numbers = [2, 4, 4, 4, 5, 5, 7, 9]
print(f"Mean: {media(numbers)}")              # 5.0
print(f"Median: {median(numbers)}")           # 4.5
print(f"Mode: {mode(numbers)}")               # 4
print(f"Variance: {variance(numbers)}")       # 4.0
print(f"Std Dev: {standard_deviation(numbers)}") # 2.0

For more information visit: https://github.com/omardev29/media-calc

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

media_calc-0.2.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

media_calc-0.2.4-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file media_calc-0.2.4.tar.gz.

File metadata

  • Download URL: media_calc-0.2.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for media_calc-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a37d42c121f1bb886bb4fea00e2a6e216a6d90c0982ed250c2917ca2a80f3e30
MD5 49ccc66ddc49256023b9c719700e7fb1
BLAKE2b-256 fc87243353742831f689fcec132762142dd50230c1b18598e48bd76b9a780758

See more details on using hashes here.

File details

Details for the file media_calc-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: media_calc-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for media_calc-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb58c75ffc9ddb4b650bf37d29b83ca74d0659027df4e88c42fded1a4b6878d
MD5 f97dab679d891c85b9130bd89748f8f0
BLAKE2b-256 87b18315fe79455f936d70cf11ab38646d58bf4ecf384b18c8080bafd2964476

See more details on using hashes here.

Supported by

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