Skip to content

Commit

Permalink
minor rename for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
iampritishpatil committed Mar 23, 2022
1 parent 4b27856 commit f85407a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convolution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ convolve(d1::Poisson, d2::Poisson) = Poisson(d1.λ + d2.λ)


function convolve(d1::DiscreteNonParametric, d2::DiscreteNonParametric)
support_conv = collect(Set(v1 + v2 for v1 in support(d1), v2 in support(d2)))
support_conv = collect(Set(s1 + s2 for s1 in support(d1), s2 in support(d2)))
sort!(support_conv) #for fast index finding below
probs1 = probs(d1)
probs2 = probs(d2)
Expand Down

0 comments on commit f85407a

Please sign in to comment.