Python scripts used by the fusion energy group at UiT The Arctic University of Norway.
Project description
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.
Project details
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 superposed_pulses-1.5.tar.gz.
File metadata
- Download URL: superposed_pulses-1.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df7bf3e80a2995c24ffad0d355072cc452c406921d3867cbd846d30a392259c5
|
|
| MD5 |
c5bdcb21713580eaddfe56cc2e49020f
|
|
| BLAKE2b-256 |
9f0c000630f49f325cb2d2135202cd5f15c32390d64c1ce280f123459ef5251a
|
File details
Details for the file superposed_pulses-1.5-py3-none-any.whl.
File metadata
- Download URL: superposed_pulses-1.5-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7ec51e4b107e022c2bb60daaa8b85d019517b20542a49e5e74baf8518412a31
|
|
| MD5 |
d4851416678c1c6c48700a29419f7ddc
|
|
| BLAKE2b-256 |
2a66fd1f953641577be9dbb1a74c0fcde26e2a11cd972790f4654f8f9c548b75
|