Skip to content

Commit 1c893ce

Browse files
committed
Semicircle distribution is centered at mean, not necessarily 0
1 parent c9138d4 commit 1c893ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/densities/Semicircle.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function pdf(X::Semicircle, x::Real)
3030
end
3131

3232
# predicate is x in the support of the distribution?
33-
insupport(X::Semicircle, x::Real)=abs(x)<=X.radius
33+
insupport(X::Semicircle, x::Real)=abs(x-X.mean)<=X.radius
3434

3535

3636
#Entropy methods

0 commit comments

Comments
 (0)