Skip to main content

FPP-SLE

A filtered Poisson process and stochastic logistic equation comparison playground

PyPI version Python version Licence Tests codecov pre-commit Code style: black

Install

The package is publised on PyPI and installable via pip:

pip install fpp-sle

Usage

See the examples.py script for working examples. The main classes and functions this package provide is

  • VariableRateForcing (inside fpp module)

    This is a class that inherit from the forcing generator class provided by superposed-pulses. The class adds a method for setting a custom function that generates arrival times given the time axis and a given number of total pulses to generate.

  • get_arrival_times (inside the fpp module)

    This is a module that holds functions that draws arrival times according to some non-negative numpy array or callable, that is, the variable rate process.

    • pass_rate (inside get_arrival_times)

      Used to decorate the functions that draws arrival times from the rate function. This is the function you may want to pass in to the set_arrival_times_function method of the VariableRateForcing class. It decorates functions within get_arrival_times staring with from_.

    • from_ (inside get_arrival_times)

      These are generator functions that can take a callable or a numpy array as input, and returns arrival times based on the rate function. Currently only one generator function is implemented (from_inhomogeneous_poisson_process) which draws arrival times as if the rate was the underlying rate of a Poisson process.

  • sde

    This module holds different implementations of stochastic differential equations. See the docstring of the individual functions for explanations.

Contributing

To contribute to the project, clone and install the full development version (uses poetry for dependencies). There is also a .mise.toml file that installs and sets up an appropriate virtual environment if mise is available on your system.

git clone https://github.com/uit-cosmo/fpp-sle.git
cd fpp-sle
# Set up a virtual environment, for example with mise
mise i  # optional
poetry install
pre-commit install

Before committing new changes to a branch you may run command

nox

to run the full test suite. You will need Poetry, nox and nox-poetry installed for this.

Metadata

Release files for fpp-sle 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fpp-sle 0.3.0
File Size Uploaded
fpp_sle-0.3.0.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fpp-sle 0.3.0
File Interpreter ABI Platform
fpp_sle-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 44.2 kB

Release files / fpp_sle-0.3.0.tar.gz

Download URL fpp_sle-0.3.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
68bc574e43381f85dba3a87baa0fd34b669d4e860da6ab399fb4052c6a0a19cc
BLAKE2b-256 checksum
How to use checksums
befc49780fb63eda40c74f73b8788722489c45c68ac1dc19a6dc68be2540dbab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Release files / fpp_sle-0.3.0-py3-none-any.whl

Download URL fpp_sle-0.3.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12d5d86e0048c21e60e8950ef21b361c9a7ba110b0b39411a4834e256062f957
BLAKE2b-256 checksum
How to use checksums
43db93466959958007f5d860a1f397177773ccdef18d9afcf7a7f1c9f4451a89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page