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
Metadata
Release files for avemedi-lib 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avemedi_lib-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Release files / avemedi_lib-0.1.6-py3-none-any.whl
| Download URL | avemedi_lib-0.1.6-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
603bd4200c8f10c3367a822181a7ed6813f68c7153d2ea860afb283624c2d34c
|
|
BLAKE2b-256 checksum How to use checksums |
27fdd679b4c726ca29aebec2419c8740fe4fda7162e89d6f49bc408446e508e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|