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(gamma=0.1, 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
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
File details
Details for the file superposed-pulses-1.3.tar.gz
.
File metadata
- Download URL: superposed-pulses-1.3.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b84a5c732e993c046e195c98b391d362fc420b06c60afd3c118b73949be2e10 |
|
MD5 | e9f34b19e69e57a3e0dd7a8964cd4c22 |
|
BLAKE2b-256 | 34f01b2dd318b9c5d26cb1f6e238346f3b84dcfd2b2f520f836266a64f2bf579 |