Skip to content

Commit

Permalink
make the eecdf in convolve test less random
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Aug 20, 2024
1 parent a46bc6e commit 20292a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-stan-convole.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ test_that("convolve can combine two pmfs as expected", {

test_that("convolve performs the same as a numerical convolution", {
# Sample and analytical PMFs for two Poisson distributions
x <- rpois(10000, 3)
x <- rpois(100000, 3)
xpmf <- dpois(0:20, 3)
y <- rpois(10000, 5)
y <- rpois(100000, 5)
ypmf <- dpois(0:20, 5)
# Add sampled Poisson distributions up to get combined distribution
z <- x + y
Expand Down

0 comments on commit 20292a7

Please sign in to comment.