scheinerman / Permutations.jl

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

Ewens permutations #36

Closed SimonCoste closed 1 year ago

SimonCoste commented 1 year ago

Hi, I often have to use randomly generated permutations, but with a non-uniform distribution called the Ewens distribution. I already have my own code and would like to make it available; would Permutations.jl be the right place for such an addition ? If yes, I'll add my own branch in the next weeks. If no, do not hesitate to tell me a better package where you think Ewens sampler would better fit ! Best, Simon

Edit : btw, thanks for Permutations.jl !!!

scheinerman commented 1 year ago

Hi @SimonCoste , I'm glad you're finding Permutations useful. What I sometimes do is put code that's interesting but not "core" into a separate folder I name extras, and note it in the README file. So it's not loaded by using Permutations, but available to people who might be interested. Would that be an OK way to add your work to this repository? Thanks, Ed

PS Sorry for the sluggish delay. Busy weekend :-)

SimonCoste commented 1 year ago

Hi Ed, thanks for the answer ! I'm going to put this snippet in the extras, probably this month. Best, Simon

scheinerman commented 1 year ago

@SimonCoste would you mind drafting a short README that I can add to the extras folder, perhaps with an example?

SimonCoste commented 1 year ago

Hi Ed, actually I'll be done shortly, see the branch on my fork. I'll add tests to my branch very soon and a decent documentation on the Ewens sampler (it uses the Chinese Restaurant Process, I still need to check everything is ok). I will probably do the PR on friday. Best, Simon Edit : actually I also consider adding more permutation samplers, like for Mallows permutations or Baxter permutations.