## Simple normal test
energyGOFdist(rnorm(10), normal_dist(0, 1), nsim = 10)
## Simple Poisson test
egofd(rpois(10,1), poisson_dist(1), nsim = 0) # No p-value
## Composite Normal test
egofd(rnorm(10), normal_dist(), nsim = 10)
Run the code above in your browser using DataLab