A Python helper library for generating Process Behaviour Charts
Project description
statprocon
statprocon is a Python helper library for generating data for use in Statistical Process Control charts. SPC charts are also known as Process Behaviour Charts, Control charts or Shewhart charts.
Installation
pip install statprocon
Usage
from statprocon import XmR
counts = [10, 50, 40, 30]
xmr = XmR(counts)
moving_ranges = xmr.moving_ranges()
unpl = xmr.upper_natural_process_limit()
lnpl = xmr.lower_natural_process_limit()
x_bar = xmr.x_average()
url = xmr.upper_range_limit()
mr_bar = xmr.mr_average()
Currently, this library only supports the data for generating an XmR chart. An XmR chart is the simplest type of process behaviour chart. XmR is short for individual values (X) and a moving range (mR). More chart data options can be added via pull requests.
For more information, I invite you to read Making Sense of Data by Donald Wheeler.
Dependencies
There are a few other Python libraries for generating SPC charts but they all contain large dependencies in order to include the ability to graph the chart. This package will remain small and light and not require large dependencies. The user will need to convert the data into charts on their own.
This package also contains extensive tests for verifying the integrity of the calculated data.
Development
Create virtualenv
python3 -m venv venv
Activate virtualenv
source venv/bin/activate
python -m build
python -m twine upload dist/*
Testing
python3 -m pip install .
Run tests
python3 -m unittest discover
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 statprocon-0.0.4.tar.gz.
File metadata
- Download URL: statprocon-0.0.4.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
486ec5154a445f3f9139f29ee33ff11bf3c9610072ebab42602b3245fc2733a4
|
|
| MD5 |
4a268790f3df6ac9ee5eff6818ffe6ef
|
|
| BLAKE2b-256 |
9d83a0107dbc1ff85f572103f0862a380a2fd643547619b0331ccd5b8a77e653
|
File details
Details for the file statprocon-0.0.4-py3-none-any.whl.
File metadata
- Download URL: statprocon-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b025b9b74bfca0b92c32f00418f67dcf97a3346e55bf7ccd7eafb21cba93ebd5
|
|
| MD5 |
19deb2bb52b2b49f96b9cccc4e775fe0
|
|
| BLAKE2b-256 |
745a6f05d8d240507d2531a47a12884d6301223377929ab3b421d7deb7efbfef
|