Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superposed-pulses-1.3.tar.gz (9.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page