Skip to content

Commit

Permalink
fix broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
xukai92 committed Apr 22, 2019
1 parent 2a4d3f2 commit bfb7e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions/gumbel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function logpdf(bgb::BatchGumbelBernoulli, x; τ=FT(0.2))
α = bgb.p ./ (1 .- bgb.p .+ _eps)
xstabe = x .+ _eps
omxstabe = 1 .- x .+ _eps
return log(τ) .+ log(α) + (-τ - 1) * (log.(xstabe) + log.(omxstabe)) - 2 * (log.* xstabe.^(-τ) + omxstabe.^(-τ) .+ _eps))
return log(τ) .+ log.(α) + (-τ - 1) * (log.(xstabe) + log.(omxstabe)) - 2 * (log..* xstabe.^(-τ) + omxstabe.^(-τ) .+ _eps))
end

"""
Expand Down

0 comments on commit bfb7e73

Please sign in to comment.