Closed SimonCoste closed 1 year ago
@SimonCoste , I'm so sorry, but this is not the way I had intended to incorporate your code into this package. I don't want the code in src
to be changed at all. Rather, can you create a folder called Extras
and put your code for the Ewens sampler into a self contained file (presumably starting with using Permutations
). So I'm going to decline this PR and hope your reworking this in the way I intended won't be difficult. Thanks Simon.
I added the Ewens sampler in
src/extras.jl
. The main function (not exported as you asked) isPermutations.EwensPermutation(n,theta)
. This month I'll add other non-uniform samplers, notably Mallows permutations.