Commit Graph

21 Commits

Author SHA1 Message Date
f65699a688 fix floats.h bug, fix std bug, add tests for std. 2023-07-23 13:17:40 +02:00
6e228dcc6b replace all floats (32 bits) with doubles (64 bits)
to fix bug after switching xorshift32 => xorshift64
2023-07-23 13:02:56 +02:00
32033b5c86 stop using pow when possible
https://stackoverflow.com/questions/2940367/what-is-more-efficient-using-pow-to-square-or-just-multiply-it-with-itself
2023-07-23 12:53:46 +02:00
9e1d4ee6d4 move to xorshift64. Better precision. 2023-07-23 12:47:47 +02:00
11286211f7 add xorshift64 + various changes. 2023-07-23 12:44:16 +02:00
2131524017 README tweaks, free seed in examples 2023-07-23 10:09:34 +02:00
08eb790a6d add beta and gamma example/tests 2023-07-23 10:09:03 +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
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
17ba9488a4 Update readme, small tweaks 2023-07-16 23:33:46 +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
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
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