Skip to content

Conversation

btwied
Copy link

@btwied btwied commented May 30, 2020

It's likely I haven't met proper guidelines for style/documentation, so please verify those when reviewing the pull request.

@stevengj
Copy link
Member

Is there any other library (numpy, mathematica, etcetera) that implements this function?

@btwied
Copy link
Author

btwied commented May 30, 2020

Is there any other library (numpy, mathematica, etcetera) that implements this function?

As far as I know, no. Numpy definitely doesn't have it, but numpy doesn't even have multinomial, which I was very glad to find Julia's Combinatorics does have. Multinomials are useful for various discrete probability calculations, and when those calculations are done under a log transform, logmultinomial would be handy. I implemented it because I needed it for game-theory research code where I'm computing expected utilities in large symmetric games, and I think there's a good chance it could be useful to others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants