rnd-pcw-poly
Generates random piecewise polynomial functions (for example for testing CPD-algorithms).
Example
import numpy as np
import matplotlib.pyplot as plt
from rnd_pcw_poly import rnd_pcw_poly
# generate a piecewise polynomial function with 5 "jumps" / 6 segments;
# no more than 200 degrees of freedom in total and locally no more than
# 6 degrees of freedom.
p = rnd_pcw_poly(5, 200, 6)
# plot it
xs = np.linspace(0,1,5000)
ys = p(xs)
plt.scatter(xs, ys)
plt.show()
The algorithm has seperately seedable and idependent core characteristics like jump locations, dof distribution, realization etc.
Metadata
Release files for rnd-pcw-poly 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rnd_pcw_poly-0.2.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rnd_pcw_poly-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / rnd_pcw_poly-0.2.0.tar.gz
| Download URL | rnd_pcw_poly-0.2.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1c895830c60a63ca87a946c34a2340bdfe45534f1d9557d0dad6b9d5b1eb645
|
|
BLAKE2b-256 checksum How to use checksums |
5584b49a9952b4144ed79eedb8d48332a72b91309ff6fa500c7c981c23ff5ea9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.9 Linux/6.4.6-76060406-generic
|
Release files / rnd_pcw_poly-0.2.0-py3-none-any.whl
| Download URL | rnd_pcw_poly-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dcf810c39ec299d06205e4bfb714b23bdee7305f5bfacae649604e52ba03145e
|
|
BLAKE2b-256 checksum How to use checksums |
18261276acbbdc92359cbc74f86686596ef10903e49e5d0cbd797ed0a26fa6e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.10.9 Linux/6.4.6-76060406-generic
|