Skip to content

Commit

Permalink
Initial commit for poisson sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenzo Lespagnol committed Nov 30, 2023
0 parents commit 7e61ccc
Show file tree
Hide file tree
Showing 8 changed files with 1,953 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
64 changes: 64 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'poisson_sampling'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=poisson_sampling"
],
"filter": {
"name": "poisson_sampling",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'poisson_sampling'",
"cargo": {
"args": [
"build",
"--bin=poisson_sampling",
"--package=poisson_sampling"
],
"filter": {
"name": "poisson_sampling",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'poisson_sampling'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=poisson_sampling",
"--package=poisson_sampling"
],
"filter": {
"name": "poisson_sampling",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
75 changes: 75 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "poisson_sampling"
version = "0.1.0"
edition = "2021"
publish = ["artifactory"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rand = { version = "0.8.5", registry = "crates-io" }
1,547 changes: 1,547 additions & 0 deletions notebook/test.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn_args_layout = "Compressed"
max_width = 120
use_small_heuristics = "Default"
# trailing_comma = "Never"
Loading

0 comments on commit 7e61ccc

Please sign in to comment.