Fun with Moving Averages!
Project description
StatPackage - a Package for Moving Average Stats!
What is this?
StatPackage is something I came up with whilst researching time-series data processing. Originally written in C#, this version was translated over to python using Claude.
A StatPackage isn't all that special in how it works, acting as a hashmap-style addressor for moving average components and derivatives. When precision matters however, I've found it pretty nifty to have on side... it's thread-safe too, allowing you to modify a single StatPackage object from wherever you like.
What does it do?
A few things, really, but mostly focused on moving averages:
- Instantiate using StatPackage(List[float]) to initialise an object with some base "true" data.
- Get your moving averages using get_moving_averages, specifying a period and an order. Moving average sets are made as they are requested, so there's no need to worry about data that might not exist!
- Periods are pretty basic, it's just how many entries previous to the current index contribute to the average at that index
- Order is something I thought might be useful - it recursively iterates your averages, smoothing them out with fewer elements required. Think of it as something like a moving average of some moving averages.
There are some other fun things you can do, including finding what base, order-0 element would be required for a moving average at a given position, getting normalised moving average sets for machine learning, and getting all the elements of a given moving average from the most immediate contributing order. Take a look, get stuck in, and have fun!
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 Distribution
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 statpackage-0.0.1.tar.gz.
File metadata
- Download URL: statpackage-0.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2da6e28b1c1bee8282f4c40de2949808ee4329ecef448fe648839c5cec6fc5cc
|
|
| MD5 |
17322f962b302e638015073c8a77a98b
|
|
| BLAKE2b-256 |
ed71fe23fc7848025710ca7112ea732a2a39fb329a8c21b85b028c468f5653ae
|
File details
Details for the file statpackage-0.0.1-py3-none-any.whl.
File metadata
- Download URL: statpackage-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f4f218cfe2a59090498fb173c5060aab85746eeba57c8456ae17778a7d119bb
|
|
| MD5 |
d0da1ffd602a8f8742c79cdbf34e728b
|
|
| BLAKE2b-256 |
5c50396dcc4ece04c626e201a7a83e7951c584617b071fdb1b9a4f4b89b422db
|