commit 91e237464eb08190ef0b967fac09ff93945229a3
parent 5d76f089bd945b34c623ffbf339528005dddfc12
Author: NunoSempere <nuno.sempere@protonmail.com>
Date: Sun, 23 Jul 2023 11:29:17 +0200
tweak independent samples explanation
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -85,9 +85,10 @@ c = b/a
c
```
-Should `c` be equal to `2`? or should it be equal to 2 times the expected ratio of two independent draws from a (`2 * a/a`, as it were)?
+Should `c` be equal to `2`? or should it be equal to 2 times the expected distribution of the ratio of two independent draws from a (`2 * a/a`, as it were)?
+
+In squiggle.c, this ambiguity doesn't exist, at the cost of greater overhead & verbosity:
-In squiggle.c, this ambiguity doesn't exist, at the cost of greater verbosity:
```c
// correlated samples
@@ -130,6 +131,7 @@ float draw_xyz(uint32_t* seed){
return sample_to(1, 20, seed);
}
+
int main(){
// set randomness seed
uint32_t* seed = malloc(sizeof(uint32_t));