Skip to content

Commit 5e81c0e

Browse files
committed
error in uniform kernel
1 parent f939e37 commit 5e81c0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/univariate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ end
66

77
# construct kernel from bandwidth
88
kernel_dist(::Type{Normal},w::Real) = Normal(0.0,w)
9-
kernel_dist(::Type{Uniform},w::Real) = (s = w/std(Uniform(-1.0,1.0)); Uniform(s,s))
9+
kernel_dist(::Type{Uniform},w::Real) = (s = 1.7320508075688772*w; Uniform(-s,s))
1010

1111
typealias LocationScale Union(Laplace,Logistic,TriangularDist)
1212
kernel_dist{D}(::Type{D},w::Real) = (s = w/std(D(0.0,1.0)); D(0.0,s))

0 commit comments

Comments
 (0)