Skip to content

uit-cosmo/superposed-pulses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Generate realizations of a Poisson point process.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages