Skip to content

Commit

Permalink
Fix name of argument variable
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
marcusps and devmotion authored Dec 15, 2024
1 parent 454a68d commit a8462a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariate/discrete/binomial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function mode(d::Binomial{T}) where T<:Real
end
modes(d::Binomial) = Int[mode(d)]

function median(rv::Binomial)
function median(dist::Binomial)
bound = min(rv.p, 1-rv.p)
rv_mean = mean(rv)
floor_mean = floor(Int, rv_mean)
Expand Down

0 comments on commit a8462a1

Please sign in to comment.