Skip to content

Commit

Permalink
Documentation fix (#1741)
Browse files Browse the repository at this point in the history
logpdf evalutes the logarithm of the pdf of d at x, not the pdf of d at x.
  • Loading branch information
chskcau committed Jun 22, 2023
1 parent 736cf85 commit dd876e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ end
"""
logpdf(d::Distribution{ArrayLikeVariate{N}}, x::AbstractArray{<:Real,N}) where {N}
Evaluate the probability density function of `d` at `x`.
Evaluate the logarithm of the probability density function of `d` at `x`.
This function checks if the size of `x` is compatible with distribution `d`. This check can
be disabled by using `@inbounds`.
Expand Down

0 comments on commit dd876e7

Please sign in to comment.