{"id":16519290,"url":"https://github.com/manifoldfr/point-process-rust","last_synced_at":"2025-03-16T19:31:00.070Z","repository":{"id":32550934,"uuid":"136713527","full_name":"ManifoldFR/point-process-rust","owner":"ManifoldFR","description":"Simulation of point processes in the Rust programming language","archived":false,"fork":false,"pushed_at":"2023-02-04T18:31:56.000Z","size":3092,"stargazers_count":40,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-12T16:46:09.178Z","etag":null,"topics":["mathematical-modelling","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManifoldFR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-09T10:29:07.000Z","updated_at":"2024-05-12T23:49:56.000Z","dependencies_parsed_at":"2023-02-18T18:45:47.398Z","dependency_job_id":null,"html_url":"https://github.com/ManifoldFR/point-process-rust","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManifoldFR%2Fpoint-process-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManifoldFR%2Fpoint-process-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManifoldFR%2Fpoint-process-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManifoldFR%2Fpoint-process-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManifoldFR","download_url":"https://codeload.github.com/ManifoldFR/point-process-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667187,"owners_count":16860568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mathematical-modelling","rust","rust-lang"],"created_at":"2024-10-11T16:46:12.606Z","updated_at":"2024-10-27T11:09:03.425Z","avatar_url":"https://github.com/ManifoldFR.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Point processes in Rust\n\n[![Crates.io Status](https://img.shields.io/crates/v/point_process.svg)](https://crates.io/crates/point_process)\n[![Docs](https://docs.rs/point_process/badge.svg)](https://docs.rs/point_process)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/ManifoldFR/point-process-rust/master/LICENSE)\n[![Build Status](https://travis-ci.org/ManifoldFR/point-process-rust.svg?branch=master)](https://travis-ci.org/ManifoldFR/point-process-rust)\n\nPoint processes are stochastic processes with a wide range of applications in seismology, epidemiology, or financial mathematics. They are utilized to model the arrival of random events as a function of time.\n\n![variablepoisson](lib/examples/images/poisson_oscillating.png)\n\nThis crate provides functions to simulate point processes in [Rust](https://rust-lang.org), built on top of [`ndarray`](https://github.com/bluss/ndarray). There is a Rust API available through the base crate as well as a Python library crate.\n\n## Overview\n\n### Time-dependent processes\n\nThe following time-dependent point processes have been implemented within the `temporal` module:\n\n* Poisson point process (homogeneous and inhomogeneous, with custom function)\n* Exponential-kernel Hawkes processes, using a linear-time simulation algorithm (both constant and variable background intensities supported)\n\n![cos_bg_exphawkes](lib/examples/images/hawkes_exp_sine_bg.png)\n\n### Spatial processes\n\n![2dpoisson_circle](lib/examples/images/2d_poisson_circle.png)\n\nThe `generalized` module provides functions for higher-dimensional processes.\n\nFor now, only Poisson processes have been implemented.\n\n### Estimators\n\nThe [`estimators`](./lib/src/estimators) module provides estimator routines for point process statistics such as the intensity.\n\n![polyexp_poisson_estimation](lib/examples/images/poisson_poly_exp.png)\n\n\n## Python package\n\nAn Python wrapper crate is available in the [`pylib`](./pylib) directory.\n\n\n## Examples\n\nRun the examples with for instance\n```bash\ncd lib/\ncargo run --example variable_poisson\n```\n\nSome will produce SVG image files in the [`lib/examples`](./lib/examples) directory.\n\nThe examples show how to use the API.\n\nThey require the [`plotters` crate](`https://github.com/38/plotters`) for plotting.\n\n## Building locally\n\nTo compile the Rust library, do\n\n```bash\ncd lib/\ncargo build\n```\n\nTo build the Python library,\n\n```bash\ncd pylib/\ncargo build --release\n```\n**Warning** on macOS, you might need to add the following to `~/.cargo/config` (see [PyO3's README](https://github.com/PyO3/pyo3)):\n```toml\n[target.x86_64-apple-darwin]\nrustflags = [\n  \"-C\", \"link-arg=-undefined\",\n  \"-C\", \"link-arg=dynamic_lookup\",\n]\n```\nor linking with the C compiler will fail.\n\nTo compile both crates at the same time, just do\n```\ncargo build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfr%2Fpoint-process-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanifoldfr%2Fpoint-process-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanifoldfr%2Fpoint-process-rust/lists"}