Stochastic Process
Project description
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))
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
stoch-1.0.0.tar.gz
(2.3 kB
view details)
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
stoch-1.0.0-py3-none-any.whl
(2.5 kB
view details)
File details
Details for the file stoch-1.0.0.tar.gz.
File metadata
- Download URL: stoch-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab35dc3986c6e8b28fcc21a2aa33327c1578bc5464457423bbbf3a0248fe66b0
|
|
| MD5 |
89a0d9721609a9f1c6fbbddf904efb7a
|
|
| BLAKE2b-256 |
a29b6e58d3537c6630e74bc0b5eb45d1b8a79fd91ca0f7439e62ccdc301d1b6e
|
File details
Details for the file stoch-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stoch-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c772b3c6226c029f13d0f8affdddb2047b47c0e451a12be31f2b9f85765d18a
|
|
| MD5 |
b1bec7752ac3353fbde29e35ab7b2641
|
|
| BLAKE2b-256 |
04d859cf6e8620ec9c2ac18a25295f9980704abfb87ce82425e878a31f1af9b8
|