Skip to content

Commit

Permalink
random: adding tests for Wald distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Jul 8, 2024
1 parent da39367 commit 0c09331
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions basis/random/random-tests.factor
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@ math.functions sets grouping random.private math.statistics ;
500000 [ 100 0.8 binomial-random ] replicate
[ mean 80 .1 ~ ] [ std 4 .1 ~ ] bi
] unit-test

{ t } [
500000 [ 1.23 1.45 wald-random ] replicate
mean 1.54 1.23 / .1 ~
] unit-test

0 comments on commit 0c09331

Please sign in to comment.