Skip to content

Commit

Permalink
Update src/bijectors/logit.jl
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
mohamed82008 and devmotion authored May 13, 2020
1 parent f252900 commit 30fbf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bijectors/logit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ logabsdetjac(b::Logit{2}, x::AbstractMatrix) = sum(logit_logabsdetjac.(x, b.a, b
logabsdetjac(b::Logit{2}, x::AbstractArray{<:AbstractMatrix}) = map(x) do x
logabsdetjac(b, x)
end
logit_logabsdetjac(x, a, b) = -log((x - a) * (b - x) / (b - a))
logit_logabsdetjac(x, a, b) = log(b - a) - log(x - a) - log(b - x)

0 comments on commit 30fbf25

Please sign in to comment.