Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use DensityInterface.jl #40

Closed
wants to merge 3 commits into from

Conversation

ParadaCarleton
Copy link
Contributor

@ParadaCarleton ParadaCarleton commented Sep 19, 2022

The PDF function should overload DensityInterface.jl's logpdf for a consistent interface. (pdf is then defined as exp(logpdf).)

@ParadaCarleton ParadaCarleton marked this pull request as ready for review September 19, 2022 21:47
@joshday
Copy link
Owner

joshday commented Sep 19, 2022

I appreciate the pointer to DensityInterface, but it doesn't look like that package has a logpdf function. I'd be happy to adopt a common interface, but I don't think this PR is the correct way to do it.

@ParadaCarleton
Copy link
Contributor Author

I appreciate the pointer to DensityInterface, but it doesn't look like that package has a logpdf function. I'd be happy to adopt a common interface, but I don't think this PR is the correct way to do it.

Crap, it's logdensityof, sorry. Distributions is the one defining logpdf specifically.

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