scheinerman / Permutations.jl

Permutations class for Julia.
Other
51 stars 14 forks source link

Ewens random permutations #37

Closed SimonCoste closed 1 year ago

SimonCoste commented 1 year ago

I added the Ewens sampler in src/extras.jl. The main function (not exported as you asked) is Permutations.EwensPermutation(n,theta). This month I'll add other non-uniform samplers, notably Mallows permutations.

scheinerman commented 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.