tweak independent samples explanation

This commit is contained in:
NunoSempere 2023-07-23 11:29:17 +02:00
parent 5d76f089bd
commit 91e237464e

View File

@ -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));