Stochastic Process
Project description
stochasticprocesss
stochasticprocess is a package for stochastic processes.
Usage Examples
from stochasticprocess.poisson import get_event_times, get_probability
# Example 1: Generate event times for a Poisson process with rate 2.0 until 5 events occur
rate = 2.0
event_count = 5
event_times = get_event_times(rate, event_count)
print(f"Event times for rate={rate} and event_count={event_count}: {event_times}")
# Example 2: Generate event times for a Poisson process with rate 2.0 up to time 10
max_time = 10.0
event_times = get_event_times(rate, event_count, max_time)
print(f"Event times for rate={rate} and max_time={max_time}: {event_times}")
# Example 3: Calculate the probability of observing exactly 5 events in time 10 with rate 2.0
event_count = 5
max_time = 10.0
probability = get_probability(rate, event_count, max_time)
print(f"Probability of observing exactly {event_count} events in time t={max_time} with rate={rate}: {probability:.4f}")
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 stochasticprocess-0.2.0.tar.gz.
File metadata
- Download URL: stochasticprocess-0.2.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0927e0f7b0cf627ab8494b995e025b7340fc7c00a4880858b98253fa28be832
|
|
| MD5 |
5466681487445934da43fbdbca02b9ff
|
|
| BLAKE2b-256 |
7f83c9504c678b07ce9c20b3627fc47b21d7d64c9572a712374bd101516d6c85
|
File details
Details for the file stochasticprocess-0.2.0-py3-none-any.whl.
File metadata
- Download URL: stochasticprocess-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
476abeef65550b23e2a4f84ce3afb243338d19af969059269191b1037fb51ead
|
|
| MD5 |
9708190dcf0ba2f95956ec68619a0327
|
|
| BLAKE2b-256 |
2edadbda55b24d368b78c905a997d98f9934c0f37f5a48c4b335352da241506a
|