Skip to content

Commit 3b67db7

Browse files
committed
fix error in lscv bandwidth selection
1 parent 93c235f commit 3b67db7

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
@@ -172,7 +172,7 @@ function kde_lscv(data::RealVector, midpoints::Range;
172172
ks = real(cf(dist, j*c))
173173
ψ += ft2[j+1]*(ks-2.0)*ks
174174
end
175-
ψ*step(k.x) + pdf(dist,0.0)/ndata
175+
ψ*step(k.x)/K + pdf(dist,0.0)/ndata
176176
end
177177

178178
dist = kernel_dist(kernel, opt.minimum)

0 commit comments

Comments
 (0)