This library help in getting a "average value of numbers list" and "get median (for ordered, unordered list of numbers and even or odd list values)". Enjoy.
Project description
This library help in getting a "average value of numbers list" and "get median (for ordered, unordered list of numbers and even or odd list values)".
Enjoy.
Github rep - https://github.com/zelenchuk/avemedi_lib
Installing
pip install avemedi_lib
Usage
from avemedi_lib.functions import average, get_median, get_median_custom
test_even_array = [12, 32, 23, 43, 14, 44, 123, 15]
test_odd_array = [1, 2, 3, 4, 5, 6, 7, 8, 9]
# Getting average value of list items
print(average(test_even_array)) # 38.25
# Getting median value for ordered or unordered numbers list
print(get_median(test_even_array)) # 27.5
print(get_median(test_odd_array)) # 27.5
# You can use your own sorted and your count functions
a = sorted(test_even_array)
n = len(a)
print(get_median_custom(a, n)) # 27.5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file avemedi_lib-0.1.6-py3-none-any.whl.
File metadata
- Download URL: avemedi_lib-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
603bd4200c8f10c3367a822181a7ed6813f68c7153d2ea860afb283624c2d34c
|
|
| MD5 |
0fd81151b94fdd64828df8d471467d0c
|
|
| BLAKE2b-256 |
27fdd679b4c726ca29aebec2419c8740fe4fda7162e89d6f49bc408446e508e2
|