Skip to content

Commit c7cb345

Browse files
committed
dbscan(): make eps inclusive
as in wiki pseudocode and nntree-based impl
1 parent 93351a9 commit c7cb345

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dbscan.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function _dbs_region_query(D::AbstractMatrix{T}, p::Int, eps::T) where T<:Real
9696
nbs = Int[]
9797
dists = view(D,:,p)
9898
for i = 1:n
99-
@inbounds if dists[i] < eps
99+
@inbounds if dists[i] <= eps
100100
push!(nbs, i)
101101
end
102102
end

0 commit comments

Comments
 (0)