stoch: a package for stochastic calculations
Generators of stochastic process
-
gaussian_process(mean=0, std=1, dt=1, size=None) -
ornstein_uhlenbeck_process(x0=0, mu=0, theta=1, sigma=1, dt=1, size=None)
Note: The parameter size follows the convention in numpy. When it is None, it generates float; When it is int(s), it generates np.array of shape size.
Usage Examples
from stoch import gaussian_process, ornstein_uhlenbeck_process
gen = gaussian_process(mean=0, std=0.1, dt=0.01) # generate scaler
gen = gaussian_process(mean=0, std=0.1, dt=0.01, size=(2, 4)) # generate np.array of shape (2, 4)
gen = ornstein_uhlenbeck_process(x0=0., mu=0.1, theta=0.5, sigma=0.3, dt=0.01) # generate scaler
gen = ornstein_uhlenbeck_process(x0=0., mu=0.1, theta=0.5, sigma=0.3, dt=0.01, size=3) # generate np.array of shape (3,)
for i in range(10):
print(next(gen))
Metadata
Release files for stoch 1.0.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 | Provenance | |
|---|---|---|---|---|
| stoch-1.0.0.tar.gz | 2.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stoch-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / stoch-1.0.0.tar.gz
| Download URL | stoch-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab35dc3986c6e8b28fcc21a2aa33327c1578bc5464457423bbbf3a0248fe66b0
|
|
BLAKE2b-256 checksum How to use checksums |
a29b6e58d3537c6630e74bc0b5eb45d1b8a79fd91ca0f7439e62ccdc301d1b6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / stoch-1.0.0-py3-none-any.whl
| Download URL | stoch-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c772b3c6226c029f13d0f8affdddb2047b47c0e451a12be31f2b9f85765d18a
|
|
BLAKE2b-256 checksum How to use checksums |
04d859cf6e8620ec9c2ac18a25295f9980704abfb87ce82425e878a31f1af9b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for stoch 1.0.0
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.