squiggle.c

Self-contained Monte Carlo estimation in C99
Log | Files | Refs | README

commit b80b05ca30e1ae5cecfd27a24a26772425341581
parent 95afb7ea1a389d35e8764a25d4ace911acaa41e9
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sun, 23 Jul 2023 14:01:17 +0200

tests for larger beta distributions

Diffstat:
Mtest/test.c | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/test/test.c b/test/test.c @@ -212,6 +212,15 @@ int main(){ } } + printf("Testing larger beta distributions\n"); + for(int i=0; i<100; i++){ + double a = sample_uniform(0, 1000 * 1000, seed); + double b = sample_uniform(0, 1000 * 1000, seed); + if ( (a > 0) && ( b >0)){ + test_beta(a, b, seed); + } + } + free(seed); }