superposed-pulses
Collection of tools designed to generate realizations of the Poisson point process.
Installation
The package is published to PyPI and can be installed with
pip install superposed-pulses
If you want the development version you must first clone the repo to your local machine, then install the project in development mode:
git clone https://github.com/uit-cosmo/superposed-pulses.git
cd superposed-pulses
pip install -e .
Usage
The simplest case, using defaults: exponential pulse shape, exponentially distributed amplitudes, constant duration times, write
import matplotlib.pyplot as plt
import superposedpulses.point_model as pm
model = pm.PointModel(waiting_time=10.0, total_duration=100, dt=0.01)
times, signal = model.make_realization()
plt.plot(times, signal)
plt.show()
Take a look at superposed-pulses/superposedpulses/example.py to find out how to change amplitudes, waiting times, duration times and the pulse shape of the process.
Release files for superposed-pulses 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| superposed_pulses-1.5.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| superposed_pulses-1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.7 kB
Release files / superposed_pulses-1.5.tar.gz
| Download URL | superposed_pulses-1.5.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df7bf3e80a2995c24ffad0d355072cc452c406921d3867cbd846d30a392259c5
|
|
BLAKE2b-256 checksum How to use checksums |
9f0c000630f49f325cb2d2135202cd5f15c32390d64c1ce280f123459ef5251a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / superposed_pulses-1.5-py3-none-any.whl
| Download URL | superposed_pulses-1.5-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7ec51e4b107e022c2bb60daaa8b85d019517b20542a49e5e74baf8518412a31
|
|
BLAKE2b-256 checksum How to use checksums |
2a66fd1f953641577be9dbb1a74c0fcde26e2a11cd972790f4654f8f9c548b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|