Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Continuous Process: Non-Homogeneous Poisson #9

Open
Gabinou opened this issue Aug 3, 2018 · 1 comment
Open

New Continuous Process: Non-Homogeneous Poisson #9

Gabinou opened this issue Aug 3, 2018 · 1 comment

Comments

@Gabinou
Copy link
Contributor

Gabinou commented Aug 3, 2018

This continuous stochastic process generates points distributed according to a density function or density matrix. Can be used to generate poisson processes whose rate function varies with time, space, or any other data space.

The user would need to supply a deterministic function, or matrix representing the density in the data space, as well as the boundaries of this data space. These can be n-dimensional. Then, points are generated using the thinning/acceptance-rejection algorithm. This necessitaets the generation of a maximum lambda value in the data space using the private method _gen_lmax, generating uniformly distributed points in the space with rate lmax (in unthinned), then rejecting these points with probability proportional to the density at each generated point (getting thinned).

I found the NonHomogeneousPoissonProcess too dissimilar to inherit from the PoissonProcess. I hope this pull request is closer to being acceptable than my previous one.

@Gabinou Gabinou changed the title New Continuous: Non-Homogeneous Poisson Process. New Continuous Process: Non-Homogeneous Poisson Process. Aug 5, 2018
@Gabinou Gabinou changed the title New Continuous Process: Non-Homogeneous Poisson Process. New Continuous Process: Non-Homogeneous Poisson Aug 5, 2018
@Gabinou
Copy link
Contributor Author

Gabinou commented Aug 29, 2018

The current re-opened pull request only works in 1D, for callable functions and not density matrices. Two generation algorithms have been implemented: the thinning algorithm and the inversion algorithm, as described in Generating Nonhomogeneous Poisson Processes by Pasupathy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant