tweak independent samples explanation
This commit is contained in:
parent
5d76f089bd
commit
91e237464e
|
@ -85,9 +85,10 @@ c = b/a
|
||||||
c
|
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
|
```c
|
||||||
// correlated samples
|
// correlated samples
|
||||||
|
@ -130,6 +131,7 @@ float draw_xyz(uint32_t* seed){
|
||||||
return sample_to(1, 20, seed);
|
return sample_to(1, 20, seed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
// set randomness seed
|
// set randomness seed
|
||||||
uint32_t* seed = malloc(sizeof(uint32_t));
|
uint32_t* seed = malloc(sizeof(uint32_t));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user