pygbn
This package implements the generalized binary noise (GBN) model of [1] in Python. The code is based on the Matlab implementation revised by Ivo Houtzager in 2007 at the Delft Center of Systems and Control.
Installation
You can very easily install the package using pip:
pip install pygbn
or after locally cloning the source code:
pip install .
Usage
Below is an example of how to use the package.
import matplotlib.pyplot as plt
from pygbn import gbn
if __name__ == '__main__':
seed = 0 # random seed
h = 0.05 # sampling period [s]
T = 1 # length of signal [s]
A = 1 # amplitude of signal
ts = 1 # estimated settling time of the process [s]
# flag indicating process damping properties
# flag = 0 if the process is over-damped (default)
# flag = 1 if the process is oscillary (min phase)
# flag = 2 if the process is oscillary (non min phase)
flag = 0
# generate time array
t = np.arange(start=0, stop=T, step=h)
# generate the signal
# the gbn function returns a time array and a signal array
u = gbn(h, T, A, ts, flag, seed=seed)
# optional: plot the generated signal
plt.plot(t, u)
Citations
[1] Tulleken, H. J. (1990). Generalized binary noise test-signal concept for improved identification-experiment design. Automatica, 26(1), 37-49.
Metadata
Release files for pygbn 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygbn-0.1.3.tar.gz | 4.1 kB | Without provenance | Details for pygbn-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygbn-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pygbn-0.1.3-py3-none-any.whl |
Total release size: 7.7 kB
Release files / pygbn-0.1.3.tar.gz
| Download URL | pygbn-0.1.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aec0a1ba484ca78c64dfd5aa58f3d021acb8ff209b29a2aa85ec2acdd7179fc4
|
|
BLAKE2b-256 checksum How to use checksums |
d29b98a72bd6325718dcc7a2e11d13277245d0bac86133943ea8f9a4c0da91b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / pygbn-0.1.3-py3-none-any.whl
| Download URL | pygbn-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b45d8fdc254e05f409b6db08f804598170eac3f8c1d669dc2644fcc5c5739bc9
|
|
BLAKE2b-256 checksum How to use checksums |
2a93275f4835eb8c45cdb0da2283d7d713f63d4ee8be8473c2a407c7f618b9df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for pygbn 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.