This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Common minimal format for sending just lat/long data | |
| [ | |
| { | |
| uuid: "550e8400-e29b-41d4-a716-446655440000", | |
| date: "2010-04-30T16:50:00Z", | |
| location: { | |
| position: { | |
| latitude: 45.5118, | |
| longitude: -122.6433 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Monty Hall problem (Let's Make a Deal gameshow) | |
| ;; http://www.marilynvossavant.com/articles/gameshow.html | |
| (use '(incanter core stats charts)) | |
| ;; set a simulation sample size | |
| (def n 10000) | |
| ;; generate samples of initial-guesses, prize-doors, and switch decisions | |
| (def initial-guesses (sample [1 2 3] :size n)) | |
| (def prize-doors (sample [1 2 3] :size n)) |
NewerOlder