fpp-sle-0.1.0
توضیحات
Implements FPP and SLE algorithms
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fpp-sle-0.1.0 |
| نام | fpp-sle |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | engeir |
| ایمیل نویسنده | eirroleng@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fpp-sle/ |
| مجوز | GPL-3.0-or-later |
<h1 align="center">FPP-SLE</h1>
<div align="center">
___A filtered Poisson process and stochastic logistic equation comparison playground___
[](https://pypi.org/project/fpp-sle/)
[](https://pypi.org/project/fpp-sle/)
[](https://opensource.org/licenses/GPL-3.0)
[](https://github.com/uit-cosmo/fpp-sle/actions?workflow=Tests)
[](https://codecov.io/gh/uit-cosmo/fpp-sle)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/psf/black)
</div>
## Install
The package is publised on [PyPI] and installable via `pip`:
```sh
pip install fpp-sle
```
To contribute to the project, clone and install the full development version (uses
[poetry] for dependencies):
```sh
git clone https://github.com/engeir/fpp-sle
cd fpp-sle
poetry install
pre-commit install
```
Before committing new changes to a branch you can run command
```sh
nox
```
to run the full test suite. You will need [Poetry], [nox] and [nox-poetry] installed for
this.
## 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`](https://github.com/uit-cosmo/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.
[pypi]: https://pypi.org/
[poetry]: https://python-poetry.org
[examples.py]: ./assets/examples.py
[nox]: https://nox.thea.codes/en/stable/
[nox-poetry]: https://nox-poetry.readthedocs.io/
نیازمندی
| مقدار | نام |
|---|---|
| >=5.0.0,<6.0.0 | importlib-metadata |
| >=0.53.1,<0.57.0 | numba |
| >=1.20.2,<2.0.0 | numpy |
| >=1.2,<2.0 | superposed-pulses |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<3.11 | Python |
نحوه نصب
نصب پکیج whl fpp-sle-0.1.0:
pip install fpp-sle-0.1.0.whl
نصب پکیج tar.gz fpp-sle-0.1.0:
pip install fpp-sle-0.1.0.tar.gz