We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
logdensity_def(::Normal, ::Normal, x)
julia> using Symbolics julia> @variables μp σp μq σq x; julia> logdensity_rel(Normal(μp,σp), Normal(μq,σq), x) |> simplify (1//2)*(((x - μq) / σq)^2) - (1//2)*(((x - μp) / σp)^2)
Note that it simplifies more than this (Factor out the 1/2, then it's a difference of squares).
We can make this efficient by adding logdensity_def methods
logdensity_def
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Note that it simplifies more than this (Factor out the 1/2, then it's a difference of squares).
We can make this efficient by adding
logdensity_def
methodsThe text was updated successfully, but these errors were encountered: