https://github.com/boredoms/discrete-laplacian
An implementation of the discrete Laplacian distribution in C++ for differential privacy applications
https://github.com/boredoms/discrete-laplacian
cpp20 differential-privacy random-distributions
Last synced: 8 months ago
JSON representation
An implementation of the discrete Laplacian distribution in C++ for differential privacy applications
- Host: GitHub
- URL: https://github.com/boredoms/discrete-laplacian
- Owner: boredoms
- Created: 2025-02-26T15:40:33.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T15:42:10.000Z (8 months ago)
- Last Synced: 2025-02-26T16:41:20.457Z (8 months ago)
- Topics: cpp20, differential-privacy, random-distributions
- Language: C++
- Homepage:
- Size: 271 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discrete Laplacian Distribution
This repository contains a header only library to sample from the discrete laplacian distribution in C++. The distribution is defined in "A discrete analogue of the Laplace distribution" by Seidu Inusaha and Tomasz J. Kozubowski.
The interface follows the C++ STL interface for distributions. There also exists a test suite for confirming that the distribution of sampled values behaves as the discrete Laplacian distribution.
## Requirements
The library itself does not have any dependencies outside of the STL, but it requires C++20. If you need to use a lower standard, please open an issue and I will provide a fix.
The tests depend on Catch2.