We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9138d4 commit 1c893ceCopy full SHA for 1c893ce
1 file changed
src/densities/Semicircle.jl
@@ -30,7 +30,7 @@ function pdf(X::Semicircle, x::Real)
30
end
31
32
# predicate is x in the support of the distribution?
33
-insupport(X::Semicircle, x::Real)=abs(x)<=X.radius
+insupport(X::Semicircle, x::Real)=abs(x-X.mean)<=X.radius
34
35
36
#Entropy methods
0 commit comments