Collision probability computation for conjunction assessment
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+26 -7
+19 -7
README.md
··· 6 6 7 7 ## Installation 8 8 9 + Install with opam: 10 + 11 + ```sh 12 + $ opam install collision 9 13 ``` 10 - opam install collision 14 + 15 + If opam cannot find the package, it may not yet be released in the public 16 + `opam-repository`. Add the overlay repository, then install it: 17 + 18 + ```sh 19 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 20 + $ opam update 21 + $ opam install collision 11 22 ``` 12 23 13 24 ## Usage 14 25 15 26 ```ocaml 16 27 (* Quick Pc from a CDM *) 17 - let pc = Collision.pc ~hbr:0.015 cdm in 18 - Printf.printf "Pc = %e\n" pc 28 + let pc = Collision.pc ~hbr:0.015 cdm 29 + let () = Printf.printf "Pc = %e\n" pc 19 30 20 31 (* Step-by-step: project to conjunction plane, then compute *) 21 - let enc = Collision.encounter_of_cdm ~hbr:0.015 cdm in 22 - let pc_foster = Collision.pc_foster enc in 23 - let pc_max = Collision.pc_max enc in 24 - Printf.printf "Foster Pc: %e, Max Pc bound: %e\n" pc_foster pc_max 32 + let enc = Collision.encounter_of_cdm ~hbr:0.015 cdm 33 + let pc_foster = Collision.pc_foster enc 34 + let pc_max = Collision.pc_max enc 35 + let () = 36 + Printf.printf "Foster Pc: %e, Max Pc bound: %e\n" pc_foster pc_max 25 37 ``` 26 38 27 39 ## API Overview
+1
collision.opam
··· 14 14 "dune" {>= "3.21" & >= "3.0"} 15 15 "cdm" 16 16 "fmt" 17 + "mdx" {with-test} 17 18 "vec3" 18 19 "odoc" {with-doc} 19 20 ]
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries collision))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 (name collision) 3 4 (source (tangled gazagnaire.org/ocaml-collision)) 4 5 (license ISC) ··· 18 19 (dune (>= 3.0)) 19 20 cdm 20 21 fmt 22 + (mdx :with-test) 21 23 vec3))