Commit Graph

43 Commits

Author SHA1 Message Date
5e39c386f7 fix dumb beta sampling bug 2023-07-23 09:29:00 +02:00
4dad518d3f add efficient beta distribution 2023-07-22 22:24:22 +02:00
3f70915903 fix performance record, add global makefile. 2023-07-22 21:49:00 +02:00
fee06aec65 add gamma distribution & documentation. 2023-07-22 21:40:35 +02:00
baa8a532a2 add to-do item 2023-07-22 19:39:46 +02:00
f9c64426d7 add mean and std for arrays. 2023-07-22 19:37:49 +02:00
57adb08057 formatting pass. 2023-07-22 19:25:36 +02:00
36249ebf39 small reorg, comment purpose of functions 2023-07-22 19:24:52 +02:00
04070a934e give more expressive names to main functions
This bash function was helpful:

function replace(){
  grep "$1" -rl .
  grep "$1" -rl . | xargs sed -i "s/$1/$2/g";
}
2023-07-22 19:21:20 +02:00
8cc63dce4b add to-do 2023-07-22 16:20:22 +02:00
ccb152ea4f add a motivating reason to use C to the readme 2023-07-22 16:17:07 +02:00
17ba9488a4 Update readme, small tweaks 2023-07-16 23:33:46 +02:00
bebb7c6d46 format squiggle.c 2023-07-16 23:00:39 +02:00
6247fbfb7b simplify PROCESS_ERROR macro 2023-07-16 22:58:20 +02:00
11e965be4f rename sampler functions, elaborate on README, etc. 2023-07-16 22:32:03 +02:00
ea80c930e6 reduce num samples, start README 2023-07-16 21:52:24 +02:00
f5af776eb3 formatting pass. 2023-07-16 21:37:43 +02:00
7a2015e3e0 divide simple and complex examples into two different examples. 2023-07-16 21:32:17 +02:00
d10796cae2 graduate scratchpad to its own example 2023-07-16 21:28:03 +02:00
ee9ed34287 move some functions from scratchpad => squiggle.c, reorg 2023-07-16 21:26:33 +02:00
68e7730f24 reformat squiggle.c, remake examples. 2023-07-16 21:08:05 +02:00
8f69dd1e58 move to squiggle.c file, instead of just squiggle.h 2023-07-16 21:00:30 +02:00
cd6eb5203c add some thoughts to scratchpad and readme 2023-07-16 17:59:53 +02:00
65756a359b scratchpad formatting pass 2023-07-16 17:33:58 +02:00
487de4a731 readd inverse cdf for raw floats. rework examples. 2023-07-16 17:33:37 +02:00
e05baa6fee reorder scratchpad stuff 2023-07-16 17:10:36 +02:00
78e1838569 rework returning result to define and return at the same time 2023-07-16 17:00:26 +02:00
84f94e2bea rework error as a macro 2023-07-16 16:56:11 +02:00
c487bdfaf5 formatting pass. 2023-07-16 16:30:38 +02:00
607554f22b add beta distribution samples!! 2023-07-16 14:38:12 +02:00
e94774ae3a add dangerous beta sampler. 2023-07-16 13:57:27 +02:00
2acf129ef2 add comparison with previous sampler.
New approach turns out to be ~50x slower.
Though it is much more general.
2023-07-16 13:02:11 +02:00
aca99a3386 added better error messages! 2023-07-16 12:29:08 +02:00
75689c506d mark to-dos as done 2023-07-16 12:11:25 +02:00
5ef5c6847a formatting pass 2023-07-16 12:09:58 +02:00
4deb2044d6 add more examples, tweak code a bit 2023-07-16 12:09:41 +02:00
c7d9f87ad7 add sampler, add normal cdf 2023-07-16 11:08:59 +02:00
88b51331ea finish inverse! 2023-07-16 00:59:27 +02:00
d4f6142734 start adding inverse_cdf to scratchpad 2023-07-16 00:23:59 +02:00
b40fec4c07 add cdf_sampler to to-do 2023-07-15 23:26:57 +02:00
00c7f8cdf9 add scratchpad 2023-07-15 23:26:48 +02:00
d744bcd354 savepoint 2023-07-15 23:22:44 +02:00
9578461494 move squiggle_c to its own repository 2023-06-26 18:44:41 +01:00